Operator Type:
Operator Scope of Action:
Operator Purpose:
Data Type Returned:
Operator First Added:
Operator in Current Baseline:
Operator Last Altered:
Function [other Function type actions]
Item [operators of similar scope]
Mathematical [other Mathematical operators]
Number [about Number data type]
v9.5.2
Baseline
As at baseline
Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses
Number.floor()
Number.floor() rounds the source number value of sourceNum down to previous whole integer. This is a dot-operator
See also Number.ceil() and Number.round().
If $MyNumber is 3.9 then:
$MyNumber = $MyNumber.floor();
sets $MyNumber to 3. Note unlike normal rounding the value is set downwards to the next integer (i.e. whole number).
See also—notes linking to here: