Defining Logic > Functions > Math Functions > Truncate

Truncate

Truncates the realA real number is any number ranging from 1.7 X 10 -308 to 1.7 X 10 +308, including decimals. Real values may not include commas. As such, the number 5,380.5 should be entered as 5380.5. value entered into an integerAn integer number is a whole number ranging from -2,147,483,648 to 2,147,483,647. Integer values may not include commas. Therefore, the number 5,380 should be entered as 5380., which is a whole number. Any digits to the right of the decimal place will be removed.

 

When necessary, Process Simulator automatically converts real values to integers by truncating them. For more information about Process Simulator automatically converting between reals and integers, see Converting Between Numeric Types.


© 2015 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com