Contents

NumberFormatter.Style.currencyAccounting

An accounting currency style format that uses the currency symbol defined by the number formatter locale.

Declaration

case currencyAccounting

Discussion

This style behaves like the NumberFormatter.Style.currency style, except that negative numbers representations are surrounded by parentheses rather than preceded by a negative symbol. For example, in the en_US locale, the number -1234.5678 is represented as ($1,234.57); in the fr_FR locale, the number -1234.5678 is represented as (1 234,57 €).

See Also

Formatting Styles