Int Function

Syntax

Int(Num)

Group

Math

Description

Returns the integer value.

Parameters

Parameters Description
Num Returns the largest integer which is less than or equal to this numeric value. If this value is Null, 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