1

For example:

In: -0.01 + (-0.02) + (-0.4) + (-0.05)
Out: -0.48000000000000004

Instead of -0.48

Why does it happen so? And how to avoid such situations?

vaultah
  • 44,105
  • 12
  • 114
  • 143
Sam Mista
  • 19
  • 1

0 Answers0