CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   Integer part in StarCD macro (http://www.cfd-online.com/Forums/cd-adapco/103922-integer-part-starcd-macro.html)

crevoise June 29, 2012 05:16

Integer part in StarCD macro
 
Hi,
Doing post-processing, I need to get integer part of a number, but I have no clue how to get that in StarCD
Any ideas how to get the integer part of a decimal number?
example: integer part of "2.356" to be "2", and "5.897" to be "5"

When you *set a parameter, it shows the real and integer part. How to *set a new parameter with the integer part of the previous one?

thanks for any help

Pauli June 29, 2012 10:21

*calc with the int function.

crevoise July 2, 2012 03:06

Thank you a lot!


All times are GMT -4. The time now is 07:56.