Bug 259703

Summary: parseFloat() and console.log("%f") disagree
Product: WebKit Reporter: Dominic Farolino <domfarolino>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: hi, inspector-bugzilla-changes
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Dominic Farolino 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.
Comment 1 Devin Rousso 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 ***