Closed
Bug 53424
Opened 25 years ago
Closed 25 years ago
Math.pow() looks broken
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
People
(Reporter: arnoldg, Assigned: rogerl)
References
()
Details
Math.pow(10, 2) returns 0, should return 100 (when running in Mozilla M17 build
2000080712).
I replaced Math.pow(10,precision) in the URL above and got the example
roundOff() function to round to 2 places.
I expect roundOff() has been copied to lots of scripts since it's at such a
prominent location. That probably means fixing Math.pow() should be a high
priority (since lots of scripts are going to be rounding floating point values).
Comment 1•25 years ago
|
||
reassign to browser product
Assignee: nboyd → rogerl
Component: Compiler → Javascript Engine
Product: Rhino → Browser
Assignee | ||
Comment 2•25 years ago
|
||
Linux opt bug - dup of 24892 (which is fixed btw, rginda checked it in 9/11 so
you might want to try a newer build just to be sure)
*** This bug has been marked as a duplicate of 24892 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•