<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>16651</bug_id>
          
          <creation_ts>2007-12-28 20:11:24 -0800</creation_ts>
          <short_desc>Firefox and JavaScriptCore differ in printing toFixed, toPrecision, toExponential</short_desc>
          <delta_ts>2010-08-27 12:58:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>44745</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ager</cc>
    
    <cc>barraclough</cc>
    
    <cc>emacemac7</cc>
    
    <cc>gavin.sharp</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65541</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-28 20:11:24 -0800</bug_when>
    <thetext>WebKit and JavaScriptCore in printing toFixed, toPrecision, toExponential

As part of r29020 I checked in results which agree with Firefox.

Pretty much all of the failures are intentional (range) differences from Firefox.  There are a couple failures which I am uncertain about:

FAIL (1234.567).toPrecision(21) should be 1234.56700000000000728. Was 1234.56700000000000000. 
FAIL (1234.567).toFixed(20) should be 1234.56700000000000727596. Was 1234.56700000000000000000. 
FAIL (123.456).toExponential(20) should be 1.23456000000000003070e+2. Was 1.23456000000000000000e+2.

I&apos;m not sure why there would be junk at the end of the values from firefox, but perhaps that&apos;s just part of the ECMA algorithm.  We&apos;ll need to decide, and either file a bug with Firefox or chose to be different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65661</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-29 19:30:42 -0800</bug_when>
    <thetext>See:
http://bclary.com/2004/11/07/#a-15.7.4.6
http://bclary.com/2004/11/07/#a-15.7.4.7
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114666</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2009-03-21 15:19:52 -0700</bug_when>
    <thetext>V8 seems to match Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>270680</commentid>
    <comment_count>3</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2010-08-27 12:58:46 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 44745 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>