RESOLVED INVALID 123933
Multiplying a floating Number from an Array calculates incorrectly
https://bugs.webkit.org/show_bug.cgi?id=123933
Summary Multiplying a floating Number from an Array calculates incorrectly
Robert
Reported 2013-11-06 15:16:02 PST
Created attachment 216231 [details] Test Results <script> var aaa = {numFloat:.55}; var bbb = 100 - (aaa.numFloat * 100); //Should be 45. Not 44.99999999999999 var ccc = aaa.numFloat * 100; // Should be 55,. Not 55.00000000000001 </script>
Attachments
Test Results (738 bytes, text/html)
2013-11-06 15:16 PST, Robert
no flags
Safari 15.6 matches with the browsers (929.35 KB, image/png)
2022-07-21 15:21 PDT, Ahmad Saleem
no flags
Ahmad Saleem
Comment 1 2022-07-21 15:21:19 PDT
Created attachment 461126 [details] Safari 15.6 matches with the browsers As can be seen from attached screenshot, all browsers have same output. I think this can be marked as "RESOLVED INVALID" or "RESOLVED WONTFIX". Thanks!
Yusuke Suzuki
Comment 2 2022-07-21 15:30:24 PDT
This is the right behavior. IEEE 754 defines this result, and all JS numbers are double.
Note You need to log in before you can comment on or make changes to this bug.