WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
91889
<input type='range'> with decimal step size can have inaccurate decimal values
https://bugs.webkit.org/show_bug.cgi?id=91889
Summary
<input type='range'> with decimal step size can have inaccurate decimal values
Pawel Chomicki
Reported
2012-07-20 12:04:21 PDT
For example, range input has value 30.740000000000002 instead of the expected 30.74. Test code pasted below, or available here:
http://jsfiddle.net/njMhg/
<html> <body> <input type="range" min="0" max="50" value="0" step="0.01" onchange="showValue(this.value)" /> <span id="range">0</span> <script type="text/javascript"> function showValue(newValue) { document.getElementById("range").innerHTML=newValue; } </script> </body> </html>
Attachments
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2012-08-18 17:23:33 PDT
Not reproducible with Google Chrome 23.0.1239.0 canary. Probably this was already fixed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug