ReferenceFunctionsMath Functions
ROUND
Rounds a number to a specified number of digits.
Summary
Rounds a number to a specified number of digits.
Remarks
- Positive
digitsrounds to the right of the decimal point. - Negative
digitsrounds to the left of the decimal point. - Uses standard half-up style rounding from Rust's
roundbehavior.
Examples
Round to two decimals
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
3.14
Round to nearest hundred
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
1200
Related functions
FAQ
What does a negative digits argument do in ROUND?
It rounds digits to the left of the decimal point (for example, tens or hundreds).
Runtime metadata
Category
Math
Signature
ROUND(arg1: Number, arg2: Number)Arity
min 2, max 2
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source