trunc()
Purpose
Truncates a floating point number
Description
Returns the integer part of a floating point number
Syntax
result = trunc( value )
Arguments
value floating point value to be truncated
result integer part of a value
Example
printAt( 0, 0, trunc( 3.1415926 ) ) // prints 3.000000
printAt( 0, 1, trunc( 3.9 ) ) // prints 3.000000
for i = 1 to 100 loop
update()
repeat
Associated Commands