Hello
In a program, I have to do the addition of several numbers.
But instead of getting 32.04, I get 32.0400000000001
I can reduce this result to 2 digits after the decimal point but why this result, while there are always 2 digits after the decimal point ?
I do not know from where comes the problem, so I've put all the numbers in addition to test.
Thank you
$cal = 0.19+0.11+0.4+0.35+0.43+0.27+1.22+0.07+0.04+0.2+6.8+0.04+0.03+0.24+0.62+0.75+0.77+0.18+0.77+0.1+1.35+1.05+0.01+0.01+2.46+5.94+0.19+0.04+2.27+0.02+0.03+0.03+0.03+0.03+0.02+0.02+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.02+0.03+0.03+0.03+0.03+0.03+0.02+0.03+0.03+0.03+0.03+0.03+0.03+0.04+0.03+0.03+0.03+0.03+0.03+0.02+0.02+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.32+0.17+1.35+0.45+1.05
MsgBox(4096,"",$cal)