0

Swift subtracting floating point or double values gives wrong answer

for example

0.45 - 0.34 = 0.10999999

I want it to give exactly two decimal point results Just like my inputs.

Dave
  • 133
  • 5
  • 14

0 Answers0