round half down
FEEL built-in function · Numeric functions
round half down(n, scale?)
Rounds to the nearest value; ties round towards zero.
Parameters
| Parameter | Type | Description |
|---|---|---|
| n | number | the number to round |
| scale | number | decimal digits to keep (optional, default 0) |
Examples
round half down(5.5)
5
Try it →
round half down(-5.5)
-5
Try it →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).