Returns the integer (whole number) representation of an expression.
Int ( expression )
Parameters
expression | An expression to convert into an integer. |
Return Value
Returns an integer.
Remarks
Fractional portions are truncated, so Int(1.999999) returns 1
Related
Number, String, Round
Example
$var = Int(10.793) ;$var is the integer 10