[webkit-reviews] review requested: [Bug 7748] toPrecision sometimes messes up the last digit on intel Macs : [Attachment 7040] fix by adding intPow10 function

bugzilla-request-daemon at opendarwin.org bugzilla-request-daemon at opendarwin.org
Sun Mar 12 19:24:51 PST 2006


Maciej Stachowiak <mjs at apple.com> has asked  for review:
Bug 7748: toPrecision sometimes messes up the last digit on intel Macs
http://bugzilla.opendarwin.org/show_bug.cgi?id=7748

Attachment 7040: fix by adding intPow10 function
http://bugzilla.opendarwin.org/attachment.cgi?id=7040&action=edit

------- Additional Comments from Maciej Stachowiak <mjs at apple.com>
I only replaced toPrecision's use of pow(10.0, n) with intPow10(n). Should I do
the same for toExponential and toFixed (even though we have not yet spotted a
specific bug with those)? I am guessing they will face the same problem with
pow()'s bad rounding of powers of 10.



More information about the webkit-reviews mailing list