Bug 259703
| Summary: | parseFloat() and console.log("%f") disagree | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dominic Farolino <domfarolino> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | hi, inspector-bugzilla-changes |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Dominic Farolino
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
i think this was also fixed by 266020@main
*** This bug has been marked as a duplicate of bug 259146 ***