M
Maciej
Why ?
Precisely I proceede as follows:
float e = 1.0f;
e -= 0.05f;
e -= 0.05f;
what gives me:
e == 0.84999996
not expected:
e == 0.85
?
The same is for double type. What is the reason for that ?
TIA
Maciej
Precisely I proceede as follows:
float e = 1.0f;
e -= 0.05f;
e -= 0.05f;
what gives me:
e == 0.84999996
not expected:
e == 0.85
?
The same is for double type. What is the reason for that ?
TIA
Maciej