The floor function evaluates a decimal number and returns the largest integer less than or equal to the decimal number.
Syntax
floor( number )
Parameters
number- : The decimal number to be evaluated.
Return value
The nearest integer less than or equal to number.
Specifications
Gecko support
Supported.
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
