Syntax
int(argument)
Description
The int() function returns the integer converted from a string, and floating point number. A boolean will always return as 1.00′, and the original number is returned if it’s already an integer. All other data types will error.
Example
a="1.2" b=3.4 println("From a string ", int(a)) println("From floating point ", int(b)) From a string 1 From floating point 3