Function · Rounding
Excel FLOOR.MATH function
The Excel FLOOR.MATH function rounds down to a multiple you choose. $2.31 down to the nickel is $2.30.
Syntax =FLOOR.MATH(number, [significance], [mode])
=FLOOR.MATH(2.31,0.05)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The number to round. |
| significance | Optional | The step. 0.05 is a nickel. The default step for a positive number is 1. |
| mode | Optional | For negative numbers. A negative mode rounds toward zero. The default rounds a negative number away from zero. |
Examples
A price down to the nickel
=FLOOR.MATH(2.31,0.05)Result $2.30
| A | B | |
|---|---|---|
| 1 | Price | 2.31 |
| 2 | Step | 0.05 |
| 3 | Down to a nickel | 2.30 |
FLOOR.MATH rounds down to a step. $2.31 to the nickel below is $2.30. The same call with a step of 1 would return 2, the integer below. CEILING.MATH on $2.31 and a nickel returns $2.35. The pair is how a price list forces every figure onto a coin.
Negatives go the other way by default. Microsoft documents that -6.7 rounds to -7, away from zero, which is down on the number line. A negative mode pulls that result back toward zero. INT also moves toward negative infinity, but only to a whole number, and it has no nickel step. FLOOR.MATH needs Excel 2013 or later.