Description

Compute a number rounded to a specified precision

Syntax

round(number, precision)

Parameters

Input ParameterTypeDescription
numbernumberThe number to be rounded
precisionnumberThe number of decimal places to round to

Return value

Type
number

Sample

ExampleResultDescription
round(15.736, 2)15.74Returns the input number rounded to 2 decimal places

To view all the Math and Number functions, click here.

See Also