ROUNDUP
Rounds a number away from 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
=ROUNDUP(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. - Any discarded non-zero part increases the magnitude of the result.
- Input errors are propagated.
Examples
Round to two places to the right of the decimal point.
Formula =ROUNDUP(12.345,2)
Expected result 12.35
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 =ROUNDUP(127,-1)
Expected result 130
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 =ROUNDUP(12.345,0)
Expected result 13
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 =ROUNDUP("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 up decimals away from zero
Formula =ROUNDUP(3.14159,3)
Expected result 3.142
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 up a negative value at the hundreds place
Formula =ROUNDUP(-987.65,-2)
Expected result -1000
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
What does ROUNDUP do when discarded digits are already zero?
It leaves the value unchanged because no non-zero discarded part remains.