The Number.RoundDown function in Power Query always rounds a number down, to a whole number or to the number of decimal places you choose. So 8.97 becomes 8, and 349.756 rounded to two decimals becomes 349.75.
It looks like Excel’s ROUNDDOWN function, but negative numbers go the other way: -2.7 becomes -3 here, while ROUNDDOWN gives -2. Below, I show how it works, where that difference matters, and one decimal surprise to watch out for.
Follow along with the example file
Number.RoundDown Function Examples.xlsx
Number.RoundDown Function Syntax
Number.RoundDown(number as nullable number, optional digits as nullable number) as nullable number
- number – the number you want to round down. If it’s null, Number.RoundDown returns null.
- digits (optional) – how many decimal places to keep. Leave it out to round down to a whole number. Use a negative number to round down to tens, hundreds, or thousands (Example 3).
What it returns: The number rounded down, or null if the number is null.
The Number.RoundDown function is part of the Power Query M language, so it works wherever Power Query does in Excel: Excel 365, 2024, 2021, 2019, and 2016 for Windows, and Excel for Microsoft 365 on Mac.
When to Use the Number.RoundDown Function
Use this function when you need to:
- Drop extra decimals so a value is never overstated, like a commission or a distance
- Keep only the whole number part of a positive value
- Round amounts down to the nearest thousand for a summary report
- Round down to a step, like the nearest half star or the nearest 5
- Round down a whole column without adding a new one
Example 1: Round Down to a Whole Number
Let’s start with the simplest use. Suppose a timesheet shows 8.97 hours for a shift, and you only pay for full hours.
In Excel, go to Data > Get Data > From Other Sources > Blank Query. In the Power Query Editor that opens, type this formula in the formula bar:
= Number.RoundDown(8.97)
Result: 8

Here, Number.RoundDown gets only the number, so it rounds down to a whole number. 8.97 is very close to 9, but Number.RoundDown never rounds up, so you get 8.
The Number.Round function would give 9 here, because it goes to the nearest whole number. Use Number.RoundDown when the result must never be more than the original value.
In the example file, Examples 1, 6, and 7 type their numbers right into the query, so they don’t have a sheet. You can open them from Data > Queries & Connections.
Example 2: Round Down to Two Decimal Places
Here’s a common use with money. Below is a table named Commissions with each sales rep’s sales and commission rate, and I want a Commission column rounded down to cents.

In the code below, the Source line uses the Excel.CurrentWorkbook function to pull the Commissions table into Power Query by its name.
If you try this on your own data, format it as a table (Ctrl + T) and put your table’s name in place of “Commissions”.
Create a new blank query (as in Example 1), open the Advanced Editor (Home > Advanced Editor), and use this code:
let
Source = Excel.CurrentWorkbook(){[Name="Commissions"]}[Content],
#"Added Commission" = Table.AddColumn(Source,"Commission",each Number.RoundDown([Sales]*[Commission Rate],2),type number)
in
#"Added Commission"
Result: A new Commission column (437.02, 349.75, 459.62, 311.32, and 359.01)

Here, the Table.AddColumn function adds a Commission column and multiplies the sales by the commission rate for each row. Number.RoundDown then keeps 2 decimal places and drops the rest.
For Cassandra, 8743.9 x 0.04 is 349.756. Number.Round would give 349.76, but Number.RoundDown gives 349.75, so the company never pays out a fraction of a cent more than was earned.
Example 3: Round Down to the Nearest Thousand (Negative Digits)
You can also round down to the left of the decimal point. Below is a table named RegionSales with the annual sales of each region, and I want a Rounded Sales column with the sales rounded down to the nearest thousand.

Create a new blank query, open the Advanced Editor, and use this code:
let
Source = Excel.CurrentWorkbook(){[Name="RegionSales"]}[Content],
#"Added Rounded Sales" = Table.AddColumn(Source,"Rounded Sales",each Number.RoundDown([Annual Sales],-3),type number)
in
#"Added Rounded Sales"
Result: A new Rounded Sales column (48000, 127000, 9000, 73000, and 254000)

Here, -3 as the second argument tells Number.RoundDown to work three places to the left of the decimal point, which is the thousands. So 48972 becomes 48000, even though it’s only 28 away from 49000.
Use -1 to round down to the nearest ten and -2 for the nearest hundred. For example, Number.RoundDown(1234.5678,-2) returns 1200.
Microsoft’s documentation doesn’t mention negative digits, but they work the same way as in Excel’s ROUNDDOWN function for positive numbers.
Example 4: Round Down to the Nearest 0.5
Sometimes you need to round down to a step, not a decimal place. Below is a table named RecipeRatings with the average rating of each recipe (out of 5), and I want a Stars column with each rating rounded down to the nearest half star.

Create a new blank query, open the Advanced Editor, and use this code:
let
Source = Excel.CurrentWorkbook(){[Name="RecipeRatings"]}[Content],
#"Added Stars" = Table.AddColumn(Source,"Stars",each Number.RoundDown([Average Rating]*2)/2,type number)
in
#"Added Stars"
Result: A new Stars column (4, 4.5, 3.5, 2.5, and 4.5)

Here, the formula doubles the rating to count half stars, rounds that down to a whole number, and then halves it again. For Lemon Pasta, 4.37 x 2 is 8.74, which rounds down to 8, and 8 / 2 gives 4 stars.
Banana Bread has a 4.96 rating and still gets 4.5 stars, because 9.92 rounds down to 9. A recipe never shows more stars than it earned.
To round down to a different step, divide by the step, round down, and multiply back. For example, Number.RoundDown([Price]/5)*5 rounds a price down to the nearest 5, so 47 becomes 45.
Example 5: Round Down an Existing Column in Place
Sometimes you don’t want a new column, you just want to clean up the one you have. Below is a table named RunLog with the distance each person ran, and I want the Distance (km) column itself rounded down to one decimal place.

Create a new blank query, open the Advanced Editor, and use this code:
let
Source = Excel.CurrentWorkbook(){[Name="RunLog"]}[Content],
#"Rounded Distance" = Table.TransformColumns(Source,{{"Distance (km)",each Number.RoundDown(_,1),type number}})
in
#"Rounded Distance"
Result: The Distance (km) column now shows 5.2, 10, null, 7.9, 3.1, and 12.4

Here, the Table.TransformColumns function replaces each value in the Distance (km) column with the result of the formula after each. The underscore (_) is the current value, so Number.RoundDown(_,1) keeps one decimal place.
Helen ran 7.999 km, which rounds down to 7.9, not 8. Martha’s 10.042 km becomes 10.0, which Power Query shows as 10.
Wesley has no distance, so his cell comes into Power Query as null. Number.RoundDown returns null for a null, so the blank stays blank and you don’t get an error.
Important: Number.RoundDown can’t round a number stored as text. A text value like “2.5” gives the error We cannot convert the value “2.5” to type Number, so convert it first with the Table.TransformColumnTypes or Number.From function.
Follow along with the example file
Number.RoundDown Function Examples.xlsx
Example 6: Negative Numbers (Number.RoundDown vs Excel’s ROUNDDOWN)
This one catches people who know Excel. Suppose you have a temperature change of -2.7 degrees and want to round it down to a whole number.
Create a new blank query and type this formula in the formula bar:
= [RoundDown=Number.RoundDown(-2.7),RoundTowardZero=Number.RoundTowardZero(-2.7)]
Result: A record with RoundDown -3 and RoundTowardZero -2

Here, the square brackets build a record, so you can see both results side by side with a label for each.
Number.RoundDown always goes to the smaller number. For a negative number, the smaller number is further from zero, so -2.7 becomes -3.
Excel’s ROUNDDOWN function works differently. It always rounds toward zero, so =ROUNDDOWN(-2.7,0) in Excel returns -2.
Important: If your data has negative numbers and you want the same result as Excel’s ROUNDDOWN function, use Number.RoundTowardZero instead of Number.RoundDown.
For positive numbers, Number.RoundDown and Excel’s ROUNDDOWN function give the same answer. Number.RoundDown behaves like Excel’s INT function, which also turns -2.7 into -3.
Example 7: Why 0.57 x 100 Rounds Down to 56
Here’s a surprise that can give you a wrong answer without any error. Suppose a test score is stored as 0.57 and you want it as a whole percentage.
Create a new blank query and type this formula in the formula bar:
= Number.RoundDown(0.57*100)
Result: 56

You’d expect 57, but Power Query gives 56. That’s because computers store most decimals as a tiny bit more or less than what you typed, and 0.57 x 100 actually works out to 56.999999999999993, a hair under 57.
Number.Round wouldn’t care, because that value is still nearest to 57. But Number.RoundDown drops everything after the decimal point, so it lands on 56.
Excel’s ROUNDDOWN function quietly hides this, so =ROUNDDOWN(0.57*100,0) gives 57 in Excel. Power Query doesn’t, so you need to fix it yourself, which the next example shows.
Example 8: Convert Scores to Whole Percentages
Now let’s fix the problem from Example 7 on a real column. Below is a table named ExamScores with each student’s score as a decimal (0.57 means 57%), and I want a Percent column with the score as a whole percentage, rounded down.

Create a new blank query, open the Advanced Editor, and use this code:
let
Source = Excel.CurrentWorkbook(){[Name="ExamScores"]}[Content],
#"Added Percent" = Table.AddColumn(Source,"Percent",each Number.RoundDown(Value.Multiply([Score],100,Precision.Decimal)),type number)
in
#"Added Percent"
Result: A new Percent column (57, 82, 29, 91, and 58)

Here, the Value.Multiply function multiplies the score by 100, and Precision.Decimal tells it to do the math with exact decimals instead of the usual approximate ones. So 0.57 x 100 comes out as exactly 57, and Number.RoundDown leaves it at 57.
With a plain [Score]*100, three of these five students would lose a point: Lawrence would get 56, Victor 28, and Kendra 57.
Use this pattern whenever you multiply a decimal by 10, 100, or 1000 and then round down. It makes no difference to values that were already fine, like Jasmine’s 0.825, which still gives 82.
Other Excel Articles You May Also Like:
- Number.RoundUp Function in Power Query M
- Number.IntegerDivide – Use Number.IntegerDivide in Power Query M to divide and drop the remainder.
- Number.Mod – Use Number.Mod in Power Query M to get the remainder of a division.
- Number.ToText – Use Number.ToText in Power Query M to format numbers as text.
- Number.Abs – Use Number.Abs in Power Query M to get the absolute value of a number.
- Duration.TotalDays – Use Duration.TotalDays in Power Query M to get the days in a duration.
- List.Numbers – Use List.Numbers in Power Query M to create a list of numbers.
- Number.FromText – Use Number.FromText in Power Query M to convert text to numbers.