Reviewed by Darin.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Apr 2006 09:03:26 +0000 (09:03 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Apr 2006 09:03:26 +0000 (09:03 +0000)
commit1f8b4adf543339d1fce04ebec1402b01f3e9265e
tree087378a2cba13a893d4e5a6733657af5e373cef6
parentb1f10494edb5c5e0f43e8882da6f30c22b9803a8
    Reviewed by Darin.

        - fixed "toPrecision sometimes messes up the last digit on intel Macs"
        http://bugzilla.opendarwin.org/show_bug.cgi?id=7748

        * kjs/number_object.cpp:
        (intPow10): Compute integer powers of 10 using exponentiation by squaring.
        (NumberProtoFunc::callAsFunction): Use intPow10(n) in place of all pow(10.0, n),
        plus a bit of refactoring.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/number_object.cpp