Rounds a numeric expression to an integer value.
CINT
(numeric_expression)
If numeric_expression is not within the range of -32768
to 32767
, an Overflow
error occurs.
CINT
rounds; it does not truncate.
See the FIX and INT functions, both of which return integers.
PRINT CINT(45.67)
46
45.67 is rounded up to 46.
See the CDBL, CLNG and CSNG functions for converting numbers to the double-precision and single-precision data types, respectively.