Int Function

Syntax

Int(Num)

Group

Math

Description

Return the integer value.

Parameters

Parameters Description
Num Return the largest integer which is less than or equal to this numeric value. If this value is Null then Null is returned.

Example


Sub Main
    Debug.Print Int(9.9)  ' 9
    Debug.Print Int(0)    ' 0
    Debug.Print Int(-9.9) '-10
End Sub

See also

Fix