Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (27 loc) · 791 Bytes

Number.RoundDown.md

File metadata and controls

32 lines (27 loc) · 791 Bytes

Number.RoundDown

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

function (optional number as nullable any, optional digits as nullable any) as nullable any

Description

Returns the result of rounding number down to the previous highest integer. If number is null, Number.RoundDown returns null.

If <code>digits</code> is specified, <code>number</code> is rounded to the <code>digits</code> number of decimal digits.

Category

Number.Rounding

Examples

Round down 1.234 to integer.

Number.RoundDown(1.234)

1


Round down 1.999 to integer.

Number.RoundDown(1.999)

1


Round down 1.999 to two decimal places.

Number.RoundDown(1.999, 2)

1.99