CINT

Action

Returns an expression that has been converted to a Variant of subtype Integer.

 

Syntax

CINT (expression)

 

Parameter

Expression

Any valid expression.

 

Returns

Variant of subtype Integer.

 

Remarks

CInt differs from the Fix and Int functions, which truncate, rather than round, the fractional part of a number. When the fractional part is exactly 0.5, the CInt function always rounds it to the nearest even number. For example, 0.5 rounds to 0, and 1.5 rounds to 2.