Summary: | Multiplying a floating Number from an Array calculates incorrectly | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Robert <zoshe> | ||||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED INVALID | ||||||||
Severity: | Major | CC: | ahmad.saleem792, ap, bfulgham, iseki.m.aa, rniwa, ysuzuki | ||||||
Priority: | P3 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac (Intel) | ||||||||
OS: | OS X 10.8 | ||||||||
Attachments: |
|
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!
This is the right behavior. IEEE 754 defines this result, and all JS numbers are double. |
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>