FLOOR.MATH
Rounds a number down to the nearest integer or multiple using FLOOR.MATH rules.
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.MATH(number, [significance])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
significance | number | Optional | — |
Remarks
- If
significanceis omitted (or passed as0), the function uses1. significanceis treated as a positive magnitude.- Negative numbers round away from zero.
Differences from Excel
Formualizer accepts one or two arguments. Supplying Excel's third argument, mode, returns #VALUE!.
Examples
Round a fractional number to a multiple of two.
Formula =FLOOR.MATH(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?.
Compare how the default mode rounds negative numbers.
Formula =FLOOR.MATH(-7.2,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?.
A number already at a multiple of the significance stays at that multiple.
Formula =FLOOR.MATH(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.MATH("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?.
Default behavior for a positive number
Formula =FLOOR.MATH(24.3,5)
Expected result 20
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 multiple of five
Formula =FLOOR.MATH(-24.3,5)
Expected result -25
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
How are negative numbers rounded?
With the supported arguments, negative numbers round away from zero.