CInt Function

Syntax

CInt(expr)

Group

Conversion

Description

Convert to an Integer. If expr is too big (or too small) to fit then an overflow error occurs.

Parameters Description
expr Convert a number or string value to an Integer.

Sub Main
    Debug.Print CInt(1.6) ' 2
End Sub
NOTE: The expected result uses bankers rounding (rounding to the nearest even integer).