Int

The Int function returns the integer part of a specified number.

Note : If the number parameter contains Null, Null will be returned.

Syntax :

Int(number)
Parameters Description
number Required. A valid numeric expression.

Examples :

Example 1

dInt = (Int(7.83227) & "<br />")
dInt = (Int(7.23443))
DEBUG(dInt)

Result :

dInt
= 7
= 7

Example 2

dInt = (Int(-7.13443) & "<br />")
dInt = (Int(-7.93443))
DEBUG(dInt)

Result :

dInt
= -8
= -8