FEEL

arithmetic operators

FEEL language construct

+ - * / **

Standard arithmetic with the usual precedence, exponentiation written as **. FEEL numbers are decimals, not binary floating point, so monetary arithmetic does not accumulate the rounding error familiar from doubles. The + operator also concatenates strings.

Syntax elements

ElementTypeDescription
**numberexponentiation
/numberdivision; division by zero yields null in standard FEEL

Examples

2 + 3 * 4
(2 + 3) * 4
2 ** 3
0.1 + 0.2
"total: " + string(5)
total: 5 Try it ↑

Related constructs

comparison and boolean operators · null and error propagation · temporal literals @"…"

Related functions

decimal · round up · sum

Defined by the OMG DMN 1.6 specification, chapter 10.3 (the FEEL grammar and semantics).