LOTUSSCRIPT LANGUAGE


Round function
Example

Rounds a number to a specified number of decimal places.

Syntax

Round ( numExpr , places )

Elements

numExpr


places
Return value

Round returns a Double.

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.

Language cross-reference

@Round function in formula language

Example
See Also