Round
The Round function rounds a number to the specified number of digits. When digits is not specified, the number is rounded to the nearest whole number by default.
Usage
Function arguments:
number (required) Number to be rounded.
digits (optional) Number of decimal places to round the number. If not provided, defaults to 0.
The underlying formula is as follows:
πA negative digits value returns an integer with the specified least-significant digits zeroed.
πRounding is different than formatting. The result can have fewer digits than specified. Rounding does not add trailing zeroes.
Example
Returns 3
Returns 3.1
Returns 1200
More examples
Last updated
Was this helpful?