Reference floor()

floor()

Calculates the closest integer value that is less than or equal to the value of a number.

Examples

Syntax

floor(n)

Parameters

n
Number:

number to round down.

Returns

Integer: rounded down number.
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

Related References