[Webkit-unassigned] [Bug 91481] New: Decimal::toString should not round integer value.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 17 03:00:32 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=91481

           Summary: Decimal::toString should not round integer value.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yosin at chromium.org


Following test case in LayoutTests/fast/forms/datetime/input-valueasnumber-datetime.html is failed:
  shouldBe('setValueAsNumberAndGetValue(275760, 8, 12, 0, 0, 0, 1)', '"275760-09-12T00:00:00.001Z"');

The root cause is Decimal::toString. It  converts an integer 8639999913600001 (= Date.UTC(275760, 8, 12, 0, 0, 0 1)) to a string "8639999913600000", the last digit "1" is converted to digit "0".

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list