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 to round down.

Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!

Related References