Math, asked by vaibhav262011, 1 month ago

) 1 1000 0.1 TOO 0.01 0.1



Answers

Answered by MiracleBrain
1

made the script, it turns out pretty good:

0.1 + 0.5 //0.6

0.2 + 0.3 //0.5

But soon I see:

0.1 + 0.2 //0.30000000000000004

0.01 + 0.06 //0.06999999999999999

And it does not look right to me. I know it is a shortcoming of using float point with finite bits, but I can't find a way to fix that.

Similar questions