CInt function (LotusScript® Language)

Returns a value converted to the Integer data type.

Syntax

CInt ( expr )

Elements

expr

Any numeric expression, or a string expression that LotusScript® can convert to a number.

Return value

CInt returns the value of expr rounded to the nearest integer, as an Integer value.

CInt(EMPTY) returns 0.

If expr is a string expression, CInt returns the numeric representation of the string, rounded to the nearest integer. If LotusScript® cannot convert the string to a number, the function returns an error.

If the value of expr is too large to fit in the Integer data type, the function raises an error.

Example