ROUNDDOWN
Rounds a number toward zero to a specified number of digits.
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
=ROUNDDOWN(number, num_digits)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
num_digits | number | Required | — |
Remarks
- Positive
num_digitsaffects decimals; negative values affect digits left of the decimal. - Always reduces magnitude toward zero (unlike
INTfor negatives). - Input errors are propagated.
Examples
Round to two places to the right of the decimal point.
Formula =ROUNDDOWN(12.345,2)
Expected result 12.34
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 to a place left of the decimal point.
Formula =ROUNDDOWN(127,-1)
Expected result 120
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?.
Select zero decimal places to return an integer.
Formula =ROUNDDOWN(12.345,0)
Expected result 12
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 cannot be read from nonnumeric text.
Formula =ROUNDDOWN("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?.
Trim decimals without rounding up
Formula =ROUNDDOWN(3.14159,3)
Expected result 3.141
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 a negative value at the hundreds place
Formula =ROUNDDOWN(-987.65,-2)
Expected result -900
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
Does ROUNDDOWN always move toward negative infinity?
No. It moves toward zero, which is different from FLOOR-style behavior on negatives.