Round function (LotusScript® Language)

Rounds a number to a specified number of decimal places.

Syntax

Round ( numExpr , places )

Elements

numExpr

Any numeric expression. The number to be rounded.

places

Any numeric expression representing the desired number of decimal places. If places is not an integer, it is converted to one.

Return value

Round returns aDouble.

If the first non-significant digit is 5, and all subsequent digits are 0, the last significant digit is rounded to the nearest even digit. See the example that follows.

If places is negative, the number is rounded to places digits to the left of the decimal point. See the example that follows.

Example