Currency
Formats a number to a currency of a given currency code fitting its locale. Note: Some platforms may use different delimiters between the currency symbol and the number (if present for the locale). For instance, iOS often uses a non-breaking space, whereas Android uses a common space. This inconsistency is not corrected by this library and should thus be manually corrected if required.
Parameters
The currency code to format for. When null
defaults to the currency of the locale Defaults to null
.
The minimum number of integer digits to show. Defaults to 0U
.
The maximum number of integer digits to show. Defaults to 309U
.
The minimum number of decimal digits to show. Defaults to 0U
.
The maximum number of decimal digits to show. When null
uses the preferred faction digits of the currency. Defaults to null
.
The RoundingMode to be applied. Defaults to RoundingMode.HalfEven.