LOTUSSCRIPT LANGUAGE


Int function
Example

Returns the nearest integer value that is less than or equal to a number.

Syntax

Int ( numExpr )

Elements

numExpr


Return value

The data type of numExpr determines the data type of the value returned by the Int function. The following table shows special cases.

numExprReturn value
NULLNULL
Variant containing a string interpretable as a numberDouble

Usage

The value returned by the Int function is always less than or equal to its argument.

The Fix function and the Int function behave differently. Fix removes the fractional part of its argument, truncating toward 0.

Example
See Also