Formatting currencies

Rafael Xavier rxaviers at gmail.com
Fri Nov 28 14:56:38 CST 2014


Hello friends, hope you had a blessed thanksgiving (if you happen to
celebrate it).

Follow a couple of questions I had interpreting 4 Currencies
<http://www.unicode.org/reports/tr35/tr35-numbers.html#Currencies>, for
which I'd very much appreciate your replies.


*name currency formatting* (displayName)

To format a particular currency value "ZWD" for a particular numeric value
> *n*:
> ...
> 5. The numeric value, formatted according to the locale with the number
> of decimals appropriate for the currency, is substituted for {0} in the
> unitPattern, while the currency display name is substituted for the {1}.
>

What does "formatted according to the locale" mean? To use locale's decimal
standard pattern (for example, #,##0.### --- "69,900 US dollars" in *en*)?
Any other pattern instead?

What does "with the number of decimals appropriate for the currency" mean?
To use the supplemental currency data
<http://www.unicode.org/reports/tr35/tr35-numbers.html#Supplemental_Currency_Data>
`digits` and `rounding` values to override the above pattern (for example,
"69,900.00 US dollars" in *en*)?




*supplemental currency data*

> *digits: *the number of decimal digits normally formatted. The default is
> 2.
>

Are "number of decimal digits" the minimum fraction digits or the maximum
fraction digits? I'd assume the minimum.


Thanks,
Rafael Xavier

CurrencyFormat
-- 
+55 (16) 98138-1582, +1 (415) 568-5854, skype: rxaviers
http://rafael.xavier.blog.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/cldr-users/attachments/20141128/cf3454de/attachment.html>


More information about the CLDR-Users mailing list