Hi,
I am using a service in Codeless to do some calculation.
I am trying to do a simple substraction and the result is wrong. For instance, 2.2 - 1.2 gives me 1.0000000000000002. ANy idea ?
Thanks.
Hi,
I am using a service in Codeless to do some calculation.
I am trying to do a simple substraction and the result is wrong. For instance, 2.2 - 1.2 gives me 1.0000000000000002. ANy idea ?
Thanks.
Hi,
Codeless is based on JavaScript. JavaScript treats decimals as floating point numbers, which means operations like addition might be subject to rounding error.
Please check this article for more detailed explanation.
Regards,
Olha
Thanks for your answer. Do you have any solution to solve my problem ?