Number.RoundDown

Syntax

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

About

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.

Example 1

Round down 1.234 to integer.

Usage

Number.RoundDown(1.234)

Output

1

Example 2

Round down 1.999 to integer.

Usage

Number.RoundDown(1.999)

Output

1

Example 3

Round down 1.999 to two decimal places.

Usage

Number.RoundDown(1.999, 2)

Output

1.99