参考 floor()

floor()

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

示例

语法

floor(n)

参数

n
Number:

number to round down.

返回值

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!

相关参考