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
| Element | Type | Description |
|---|---|---|
| ** | number | exponentiation |
| / | number | division; division by zero yields null in standard FEEL |
Examples
2 + 3 * 4
14
Try it ↑
(2 + 3) * 4
20
Try it ↑
2 ** 3
8
Try it ↑
0.1 + 0.2
0.3
Try it ↑
"total: " + string(5)
total: 5
Try it ↑
Related constructs
comparison and boolean operators · null and error propagation · temporal literals @"…"
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3 (the FEEL grammar and semantics).