Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
CINT, CLNG Functions
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
CINT rounds a numeric expression to an integer.
CLNG rounds a numeric expression to a long (4-byte) integer.
CINT(numeric-expression)
CLNG(numeric-expression)
■ numeric-expression For CINT, any numeric expression in the range
-32,768 through 32,767.
For CLNG, any numeric expression in the range
-2,147,483,648 through 2,147,483,647.
Example:
PRINT CINT(12.49), CINT(12.51) 'Output is: 12 13
PRINT CLNG(338457.8) 'Output is: 338458
See Also ◄CDBL, CSNG► ◄FIX, INT►