FLOOR
Rounds a number down to the nearest multiple of a significance.
This implementation defaults significance to 1 and normalizes negative significance to positive.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=FLOOR(number, significance)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
significance | number | Required | — |
Differences from Excel
Formualizer defaults the significance to 1 if it is omitted. Excel requires it.
Remarks
- If
significanceis omitted,1is used. - Negative significance is treated as its absolute value in this fallback behavior.
Error cases
significance = 0returns#DIV/0!.
Examples
Round a fractional number to a multiple of two.
Formula =FLOOR(7.2,2)
Expected result 6
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use a five-unit rounding interval.
Formula =FLOOR(7.2,5)
Expected result 5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A number already at a multiple of the significance stays at that multiple.
Formula =FLOOR(8,2)
Expected result 8
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The number argument cannot be read from this text.
Formula =FLOOR("invalid",2)
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Round down to the nearest multiple
Formula =FLOOR(5.9,2)
Expected result 4
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Round a negative number to a lower multiple
Formula =FLOOR(-5.9,2)
Expected result -6
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Why does FLOOR move negative values farther from zero?
FLOOR rounds down to a lower multiple, which is more negative for negative inputs.