[Webkit-unassigned] [Bug 48308] Too precise serialization from floating point number to string for "number" input elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 31 23:08:52 PDT 2010


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





--- Comment #19 from Kent Tamura <tkent at chromium.org>  2010-10-31 23:08:51 PST ---
(In reply to comment #18)
> >    newValue = base + round((newValue - base) / step) * step;

Unfortunately, removing the adjustment doesn't solve this issue.

In JavaScript console, 5.005 + 0.005 * 2 prints 5.015, but 5.005 + 0.005 * 4 prints 5.0249999999999995.

-- 
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