odd
FEEL built-in function · FEEL numeric functions
odd(number)
Returns true if the number is an odd integer.
Parameters
| Parameter | Type | Description |
|---|---|---|
| number | number | the value to test |
Examples
odd(5)
true
Try it ↑
odd(2)
false
Try it ↑
Edge cases and null handling
odd(null)
null
Try it ↑
Part of FEEL numeric functions: a side-by-side rounding table, how FEEL number equality works, and every numeric function with its edge cases.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).