[Webkit-unassigned] [Bug 246646] New: Intl.NumberFormat ignores maximumFractionDigits with compact notation (both currency and decimal)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 17 13:08:18 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=246646
Bug ID: 246646
Summary: Intl.NumberFormat ignores maximumFractionDigits with
compact notation (both currency and decimal)
Product: WebKit
Version: Safari 16
Hardware: Mac (Intel)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mstarets at yahoo.com
To reproduce, try the following:
new Intl.NumberFormat('en-US', {style: 'currency', currency: 'USD', notation: 'compact', maximumFractionDigits: 2, compactDisplay: 'long'}).format(97896)
Safari output: "$98K"
Firefox and Chrome output: "$97.90K"
new Intl.NumberFormat('en-US', {style: 'decimal', notation: 'compact', maximumFractionDigits: 2, compactDisplay: 'long'}).format(97896)
Safari output: "98 thousand"
Firefox and Chrome output: "97.9 thousand"
--
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/20221017/f984f59d/attachment.htm>
More information about the webkit-unassigned
mailing list