there is a 0.0000000001 difference in some returned value… e.g. 1.1 + 2 returned 3.0999999999999 instead of 3.1.
This only happens to certain numbers, e.g.:
2.1 + 2 = 4.1
2.2 + 2 = 4.1999999999999999
2.3 + 2 = 4.3
In this case only 2.2 has this problem. Does anyone know what is the reason behind this? Is there possibly a fault in my code that caused this?
Thank you in advance!