Behaviour when decimal is provided but integer expected
-
Key: DMN16-82
-
Status: open
-
Source: Goldman Sachs ( Octavian Patrascoiu)
-
Summary:
In the DMN spec the only supported number type is decimal.
However, there are a few places (e.g. scale in round functions and list access) when an integer is needed.
What is the expected behavior when an integer is expected but a decimal number is provided? For example 'decimal(123, 5.6)' or ''remove([1, 2], 1.5).
Is this an error or the engine recovers from the error and uses only the integer part of the number?
-
Reported: DMN 1.5b1 — Thu, 20 Jul 2023 15:34 GMT
-
Updated: Tue, 5 Dec 2023 19:04 GMT