Reputation: 23
I wish to round the result (type long) of literal expression of DMN. I tried using rounddown(exp, -6), but it did not work. Function ceiling and floor also not working. I'm using Camunda 7.17. Please suggest if I'm missing something or any other way to round the result to 6 digits.
Upvotes: 0
Views: 345
Reputation: 7583
By default recent Camunda versions use the Friendly Enough Expression Language defined in the DMN standard. The FEEL Scala Engine used is documented here: https://camunda.github.io/feel-scala/docs/reference/
You are looking for the built-in numeric functions: https://camunda.github.io/feel-scala/docs/reference/builtin-functions/feel-built-in-functions-numeric such as
round down(5.5)
round up(5.5)
floor(1.5)
Upvotes: 0