CINT Function

Purpose:

To round numbers with fractional portions to the next whole number or integer.(* nota del traductor esto no es asi me parece que el redondeo es cuando sobrepasa la mitad ejemplo 5,501 sera 6,pero 5.499 sera 5,en el caso de 5,500 sera 6)

Syntax:

CINT(x)

Comments:

If x is not within the range of -32768 to 32767, an "Overflow" error occurs.

See the FIX and INT functions, both of which return integers.

Examples:

PRINT CINT(45.67)
 46

45.67 is rounded up to 46.


Note

See the CDBL and CSNG functions for converting numbers to the double-precision and single-precision data types, respectively.


1