# Function Reference

Int

Returns the integer (whole number) representation of an expression.

Int ( expression )

Parameters

expression | An expression to convert into an integer.

Return Value

Success: | Returns a integer.
Failure: | Returns 0 sets @error to 1 if not an integer, float or string.

Remarks

Fractional portions are truncated, so Int(1.999999) returns 1
Int(0/0) returns -9.22337203685478e+018, if you were wondering.

Related

Number, String, Round, HWnd

Example

$var = Int(10.793) ;$var is the integer 10