Number.RoundDown

Number

Rounds a number down toward zero (floor).

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Number.RoundDown(number as nullable number, optional digits as nullable number) as nullable number

Parameters

NameTypeRequiredDescription
numbernumberYesThe number to round down.
digitsnumberNoNumber of decimal places (default 0).

Return Value

numberThe number rounded down to the specified precision.

Remarks

Number.RoundDown always rounds toward zero, truncating any fractional part beyond the specified number of digits. When digits is omitted it defaults to 0, producing an integer. This behaves like a floor function for positive numbers.

Use this when you need to assign items to discrete buckets — for example, grouping prices into $10 bands by rounding down to the nearest ten.

Examples

Example 1: Floor product prices to nearest ten

Table.AddColumn(
    Table.SelectColumns(Products, {"ProductName", "Price"}),
    "PriceTier", each Number.RoundDown([Price], -1), type number
)
Result
ProductName
Price
PriceTier
1Widget A2520
2Gadget B5050
3Widget C1510
4Gadget D7570
5Thingamajig E120120

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks