Marcus MF Foerster commented on May 17, 2010

When 38.3 - 38 equals 0.299999999999997... and what to do about it

Just checked it -> fraction(38.3) also calculates "wrong" and delivers ".299999999999997" So it seems that the only secure way of getting the fraction is in deed doing a string operation (!)

Marcus MF Foerster commented on May 17, 2010

When 38.3 - 38 equals 0.299999999999997... and what to do about it

hehe, obviously not, when was that added ;-) well, there is still the problem with the pure arithmetic function, i.e. here the subtraction

Mario Varchmin commented on May 17, 2010

When 38.3 - 38 equals 0.299999999999997... and what to do about it

Hi Marcus, have you heard about the fraction() function?