int()
Purpose
Convert value to an integer
Description
Convert a string or float value to an integer
Syntax
result = int( value )
Arguments
value string or float value to be converted
result integer result
Example
print( int( "3.6" ) ) // prints 3
print( int( "3.1415926" ) ) // prints 3
print( int( "99" ) ) // prints 99
print( int( "Hello" ) ) // prints 0
update()
sleep( 3 )
Associated Commands