fract()
Purpose
Get the fractional part of floating point number
Description
Returns the fractional part of a floating point number (the part after the decimal point)
Syntax
result = fract( value )
Arguments
value floating point value find the fractional part of
result fractional part of value
Example
print( fract( 3.1415926 ) ) // prints 0.141593
print( fract( 3 ) ) // prints 0.000000
update()
sleep( 3 )
Associated Commands