NAME
-
cint - convert to integer
SYNOPSIS
-
v =
cint(NumExpr)
DESCRIPTION
-
Cint
rounds the value specified by NumExpr to an integer
and returns the result.
NumExpr may be any numeric expression.
EXAMPLE
-
The program
defint v
v = cint(55.09)
print v
print cint(234.523)
print cint(-82.34)
produces
55
235
-82
SEE ALSO
-
csng, cdbl, fix, int
DIAGNOSTICS
-
If the value of NumExpr lies outside the range from -32768
to 32767 inclusive, an "Overflow" error occurs.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber