WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 259146
259703
parseFloat() and console.log("%f") disagree
https://bugs.webkit.org/show_bug.cgi?id=259703
Summary
parseFloat() and console.log("%f") disagree
Dominic Farolino
Reported
2023-08-01 13:28:18 PDT
Per the Console Standard, `console.log("%f", ...)` should delegate to ECMAScript's %parseFloat()%. All browsers agree that `parseFloat(23)` prints "23", however in WebKit, `console.log("%f", 23)` prints "23.000000" (i.e., including an unnecessary number of zeros). If `console.log(%f)` were truly delegating to `parseFloat()`, then their outputs should be the same.
Attachments
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2023-08-01 13:36:31 PDT
i think this was also fixed by
266020@main
*** This bug has been marked as a duplicate of
bug 259146
***
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