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

Returns an integer.

 

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

 

Example


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