Int
From AutoIt Wiki
Returns the integer (whole number) representation of an expression. Adapted from AutoIt docs.
Contents |
Syntax
$x = Int(expr)
Parameters
| expr | An expression to convert into an integer. |
Return Value
Success: Returns an integer.
Failure: Returns 0 sets @error to 1 if not an integer, float or string.
Functional portions are truncated such that
$x = Int(1.999999) ; returns 1
Int(0/0) returns -9.22337203685478e+018
Example
$var = Int(10.793) ;$var is the integer 10