ROUNDDOWN
Last updated
Was this helpful?
Last updated
Was this helpful?
The function ROUNDDOWN rounds a number down to a given decimal place.
This function takes a two as input: a base number to round down, and another number describing which decimal place to round it to. It returns another Number: the given number, rounded down to the specified decimal place.
base_number (required, type: Number) The number to round.
digits (required, type: Number) The decimal place to round to. This specifies the number of digits that will trail the decimal point once rounding is complete. Giving 0 for the digits value results in ROUNDDOWN rounding the base number down to the nearest integer. ROUNDDOWN also accepts negative numbers for digits, which specify how to round to a whole number: -1 means ROUNDDOWN will round the base number down to the ten's place, -2 means ROUNDDOWN will round the base number down to the hundred's place, -3 means ROUNDDOWN will round the base number down to the thousand's place, et cetera.
rounded_number (type: Number) The base number rounded down to the given decimal place.
The following example takes the the number 1. 4 and rounds it down to the nearest integer:
The following example takes the number 5.8899 and rounds it down to the nearest hundredth. Note that, despite the number occupying the thousandth place in the base number being 9 – the largest number that could possibly occupy it – ROUNDDOWN still rounds down:
The following example takes the number 39 and rounds it down to the nearest ten. Note again that the base number is rounded down to 30, despite 39 being much closer, in absolute terms, to 40 than 30:
As demonstrated above, the ROUNDDOWN function only rounds down. Rounding in the more conventional manner – where whether to round up or down is determined by the rightmost number to the place being rounded to – the function is required. To exclusively round up instead of down, use .