OIC - Problem when rounding values
Summary:
We are having issues when attempting to round a few specific values in an integration orchestration.
Content (required):
In our most recent tests we were faced with the following situation:
We have two values being handled in the orchestration, value1 = 0.05 and value2 = 0.0500000424, to avoid floating point problems we round every value used using the function bellow to maintain a 10 digit precision, however when we map roundDecimal(number(value2) - number(value1), 10) to a target it generates a NaN value
When running the procedure outside of the integration we get 4.24e-8 as the result. Can someone help me understand the situation or point out what is being done incorrectly?
Tagged:
0