Strange math behaviour... could someone explain this ?
jbv
jbv.silences at Club-Internet.fr
Sun Oct 9 04:19:30 EDT 2005
other environment tested : javascript
IE 5.01 Mac OS9
(36 - 34.2) * 100 -> 179.9999999999997
Math.floor((36 - 34.2) * 100) -> 179
IE 6 Win XP
(36 - 34.2) * 100 -> 179.99999999999971
Math.floor((36 - 34.2) * 100) -> 179
Firefox 1.0 Win XP
(36 - 34.2) * 100 -> 179.99999999999972
Math.floor((36 - 34.2) * 100) -> 179
JB
>
> Yes, here's the results of all the environments I could find on my
> computers:
>
More information about the use-livecode
mailing list