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.
Notice any errors or typos? Please let us know. Please feel free to edit src/math/calculation.js and open a pull request!