FEEL

round half down

FEEL built-in function · FEEL numeric functions

round half down(n, scale?)

Rounds to the nearest value; ties round towards zero.

Parameters

ParameterTypeDescription
nnumberthe number to round
scalenumberdecimal digits to keep (optional, default 0)

Examples

round half down(5.5)
round half down(-5.5)

Edge cases and null handling

round half down(2.5)
round half down(2.51)

Only an exact half rounds down.

Related functions

round half up · decimal

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).