Formatting currencies

Steven R. Loomis srl at icu-project.org
Fri Nov 28 15:46:12 CST 2014



Enviado desde nuestro iPhone.

> El nov 28, 2014, a las 12:56 PM, Rafael Xavier <rxaviers at gmail.com> escribió:
> 
> Hello friends, hope you had a blessed thanksgiving (if you happen to celebrate it).
> 
> Follow a couple of questions I had interpreting 4 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?

No, the currency pattern. 

> What does "with the number of decimals appropriate for the currency" mean? To use the 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.

Min and max. So USD and EUR=2, so 0.99, 1.00, 1.01, etc
> 
> Thanks,
> Rafael Xavier
> 
> CurrencyFormat
> -- 
> +55 (16) 98138-1582, +1 (415) 568-5854, skype: rxaviers
> http://rafael.xavier.blog.br
> _______________________________________________
> CLDR-Users mailing list
> CLDR-Users at unicode.org
> http://unicode.org/mailman/listinfo/cldr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/cldr-users/attachments/20141128/f16d0bdf/attachment.html>


More information about the CLDR-Users mailing list