-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support cash rounding #835
Comments
Sample API: new Intl.NumberFormat(undefined, { style: "currency", currencyRounding: "cash" }) Should the option be named:
|
I've put up PR #839 for this as an item for discussion. The PR uses currencyPrecision for the name of the option. currencyRounding seems bad (even though it's the most straightforward seeming) since it implies that only the rounding increment changes. currencyUse appears as valid as currencyPrecision, though. |
TG2 discussion: https:/tc39/ecma402/blob/master/meetings/notes-2024-01-18.md#support-cash-rounding-835 Conclusion: Add Test262 and docs for the current spec behavior. |
See #134
CLDR has both normal (financial) rounding and cash rounding for currencies. We should consider adding an option to Intl.NumberFormat to support cash rounding.
The text was updated successfully, but these errors were encountered: