RESOLVED DUPLICATE of bug 259146259703
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
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.