floor() Function

Function

floor( number, significance )

Rounds the number down to the nearest multiple of the specified significance.

Parameters

Keyword Type Description

number

Decimal

A number, the floor of which will be returned.

significance

Decimal

The number will be rounded to the highest multiple of the significance that is less than the number.

Returns

Decimal

Examples

You can experiment with this function in the test box below.

Test Input

floor(-7,5) returns -10

Open in Github Built: Fri, Oct 22, 2021 (11:11:24 AM)

On This Page

FEEDBACK