I’ve downloaded the camunda bpm platform in order to evaluate dmn decisions by using the rest api.
For that I deploy this decision table:
And send this json request:
{
"variables":
{
"a": {
"value": 100.01
},
"b": {
"value": 10.01
}
}
}
I receive the following response:
[
{
"result": {
"type": "Double",
"value": 110.02000000000001,
"valueInfo": {}
}
}
]
I expect that the value of “result” were “110.02” but instead it gives “110.02000000000001”. The issue is that camunda “engine-rest” receives numbers as “Double”, so by making a sum it looses precision.
It’s there a way for making camunda “engine-rest” receives numbers from json as “BigDecimal” instead of “Double” in order to not loose precision?.