
ROUND
The ROUND function returns a number rounded to the specified number of places. Both arguments are number values.
ROUND(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 |
---|
=ROUND(1.49, 0) returns 1, the integer (0 decimal places) nearest to 1.49. =ROUND(1.50, 0) returns 2, the integer nearest to 1.50. =ROUND(1.23456, 3) returns 1.235, the number with 3 decimal places nearest to 1.23456. =ROUND(1111.222, –2) returns 1,100, the number (–2 or nearest 100) nearest to 1, 111.222. =ROUND(-2.2, 0) returns -2, the integer nearest to -2.2. =ROUND(-2.8, 0) returns -3, the integer nearest to -2.8. |