ROUNDDOWN
The ROUNDDOWN function returns a number rounded towards 0 to the specified number of places. Both arguments are number values.
ROUNDDOWN(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 |
---|
=ROUNDDOWN(1.50, 0) returns 1, the nearest integer (0 decimal places) going towards 0. =ROUNDDOWN(1.23456, 3) returns 1.234, the nearest number (3 decimal places) going towards 0. =ROUNDDOWN(1111.222, –2) returns 1,100, the nearest number (–2 or nearest 100) going towards 0. =ROUNDDOWN(-2.8, 0) returns -2, the nearest integer (0 decimal places) going toward 0. |