Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
大家好! openfoam中怎么把浮点数强行转换成整数呢?
例如我在blockMesh中 X1 = 5.00; X2 = 7.01; x12 #calc "$<label>X2-X1"; 怎么算不了呢?有其他的解决方法吗?谢谢
#calc "$<label>X2-X1"; 没尝试过,你用static_cast转换试试。
#calc "$<label>X2-X1";
static_cast
谢谢!。