[Webkit-unassigned] [Bug 259703] New: parseFloat() and console.log("%f") disagree

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 1 13:28:18 PDT 2023


            Bug ID: 259703
           Summary: parseFloat() and console.log("%f") disagree
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: domfarolino at gmail.com
                CC: inspector-bugzilla-changes at group.apple.com

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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230801/91e43474/attachment.htm>

More information about the webkit-unassigned mailing list