JDK-8229146 : Release Note: Accounting Currency Format Support
  • Type: Sub-task
  • Component: core-libs
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • OS: generic
  • CPU: generic
  • Submitted: 2019-08-05
  • Updated: 2020-04-27
  • Resolved: 2020-01-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14Resolved
Description
Currency format instances with accounting style, in which the amount is formatted in parentheses in some locales, can be obtained by calling `NumberFormat.getCurrencyInstance(Locale)` with the "u-cf-account" Unicode locale extension. For example in `Locale.US`, it will format to "`($3.27)`" instead of "`-$3.27`". Refer to [CLDR's accounting currency format style](https://www.unicode.org/reports/tr35/tr35-33/tr35-numbers.html#Currency_Formats) for additional information.