ROUNDUP
The ROUNDUP function returns a number rounded away from 0 to the specified number of places. Both arguments are number values.
ROUNDUP(num-to-round, digits)
num-to-round: The number to be rounded.
digits: The number of digits you want to retain, relative to the decimal point. A positive number represents digits (decimal places) to the right of the decimal point to include. A negative number specifies digits to the left of the decimal point to replace with zeros (the number of zeros at the end of the number).
Examples |
---|
=ROUNDUP(1.49, 0) returns 2, the nearest integer (0 decimal places) going away from 0. =ROUNDUP(1.23456, 3) returns 1.235, the nearest number (3 decimal places) going away from 0. =ROUNDUP(1111.222, -2) returns 1,200, the nearest number (-2 or nearest 100) going away from 0. =ROUNDUP(-2.2, 0) returns -3, the nearest integer (0 decimal places) going away from 0. |