Skip to main content

Number.RoundDown

Returns the highest previous number. The number of digits can be specified.

Syntax

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

Remarks

Returns the result of rounding number down to the previous highest integer. If number is null, this function returns null. If digits is provided, number is rounded to the specified number of decimal digits.

Examples

Example #1

Round down 1.234 to integer.

Number.RoundDown(1.234)

Result:

1

Example #2

Round down 1.999 to integer.

Number.RoundDown(1.999)

Result:

1

Example #3

Round down 1.999 to two decimal places.

Number.RoundDown(1.999, 2)

Result:

1.99

Category

Number.Rounding