RoundUp
Use
The RoundUp() function returns a number rounded up to a given decimal point. If nothing is provided for the decimal point, 0 is assumed.
The number result given by RoundUp() is a new number stored at that value, as opposed to rounding with value formatting, which only changes how a number is displayed.
RoundUp() treats rounding up as rounding away from 0.
For example, RoundUp(-7.3) = -8.
Units
Numbers with units will be rounded based on those units. This means that the unit a number has at the point of calculation will affect the answer.
For example, RoundUp(5.8ft) and RoundUp(5.8 ft to mm) will return values that are not equal.
Examples
RoundUp(1.8) = 2RoundUp(1.2) = 2RoundUp(-1.8) = -2RoundUp(1.2222, 2) = 1.23RoundUp(1.2222, 3) = 1.223RoundUp(45133.1, -2) = 45200RoundUp(3.2 ft) = 4ftRoundUp(3.2 ft to cm) = 98cmRoundUp(3.2 ft to cm) to ft = 3.215 ft
Related functions
| Function |
RoundUp(value)
RoundUp(value, digits)
|
RoundUp is included by default in each file as part of the Math library.
See also: