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