floor

floor 函式計算一個小數並返回小於或等於該小數的最大整數。

語法

floor( number )

引數

數字

要計算的小數。

返回值

小於或等於 number 的最接近的整數。

規範

XPath 1.0 4.4

Gecko 支援情況

支援。