floor
FEEL built-in function · Numeric functions
floor(n, scale?)
Rounds towards negative infinity at the given scale.
Parameters
| Parameter | Type | Description |
|---|---|---|
| n | number | the number to round down |
| scale | number | decimal digits to keep (optional, default 0) |
Examples
floor(1.5)
1
Try it →
floor(-1.56, 1)
-1.6
Try it →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).