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.
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.