ReferenceFunctionsMath Functions
CEILING.MATH
Rounds a number up to the nearest integer or multiple using `CEILING.MATH` rules.
Summary
Rounds a number up to the nearest integer or multiple using CEILING.MATH rules.
Remarks
- If
significanceis omitted (or passed as0), the function uses1. significanceis treated as a positive magnitude.- For negative numbers, non-zero
moderounds away from zero; otherwise it rounds toward positive infinity.
Examples
Default behavior for a positive number
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
25
Use mode to round a negative number away from zero
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
-25
Related functions
FAQ
How does mode affect negative numbers in CEILING.MATH?
With non-zero mode, negatives round away from zero; otherwise they round toward +infinity.
Runtime metadata
Category
Math
Signature
CEILING.MATH(arg1: Number, arg2…: Number)Arity
min 1, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2Number · Scalar · coercion NumberLenientText
Caps
PURE
Source