rekam
Freshman
Hello !
I have a very strange problem. Look at this :
Why does the msgbox display 0.0399999999999999999 ?????? The result of this simple operation shouldn't be just 0.04 ?
Really, I don't understand. And the worst : when b < 0.95, c is correct
Well, has anybody already had such a problem ?
Thanks!
I have a very strange problem. Look at this :
Visual Basic:
Dim a, b, c as double
a = 1
b = 0.96
c = a - b
msgbox(c)
Why does the msgbox display 0.0399999999999999999 ?????? The result of this simple operation shouldn't be just 0.04 ?
Really, I don't understand. And the worst : when b < 0.95, c is correct
Well, has anybody already had such a problem ?
Thanks!