Investment Studio > Expressions > Functions > Math & Trig > ROUNDUP
float roundup(float number, integer digits = 0)
Returns the number rounded away from zero to the specified number of digits.
If digits >= 0, number is rounded to digits decimal places.
If digits < 0, number is rounded digits places left of the decimal point.
If left out, digits defaults to 0.
Examples
=roundup(1.15, 1)
equals 1.2
=roundup(1.149, 1)
equals 1.2, too
=roundup(11.2)
equals 12
=roundup(11.2, -1)
equals 20 (11.2 rounded up one place left of the decimal point).
See also ceiling, even, floor, frac, int, mround, odd, round, rounddown, trunc.