Formatting currencies

Rafael Xavier rxaviers at gmail.com
Sat Nov 29 15:03:57 CST 2014


Thank you ver much so far Steven.

On Friday, November 28, 2014, Steven R. Loomis <srl at icu-project.org> wrote:

> Too much turkey i guess. Sorry, I was responding for "normal " currency
> format not plural name.
>
> For currency name format it does look like it should be better specified.
> I'd expect "3 dollars" not "3.00 dollars". Anyways, I'll check on this next
> week.
>
> Enviado desde nuestro iPhone.
>
> El nov 28, 2014, a las 2:08 PM, Rafael Xavier <rxaviers at gmail.com
> <javascript:_e(%7B%7D,'cvml','rxaviers at gmail.com');>> escribió:
>
>
>
> On Fri, Nov 28, 2014 at 7:46 PM, Steven R. Loomis <srl at icu-project.org
> <javascript:_e(%7B%7D,'cvml','srl at icu-project.org');>> wrote:
>
>>
>>
>> Enviado desde nuestro iPhone.
>>
>> El nov 28, 2014, a las 12:56 PM, Rafael Xavier <rxaviers at gmail.com
>> <javascript:_e(%7B%7D,'cvml','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
>> <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?
>>
>>
>> No, the currency pattern.
>>
>
> What to do with the symbol from the currency pattern? Ignore/Drop it? Or
> we'd have "¤69,900 US dollars".
>
>
>>
>> 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.
>>
>>
>> Min and max. So USD and EUR=2, so 0.99, 1.00, 1.01, etc
>>
>
> Actually, I wasn't sure if it was:
> - Min and max (e.g., f(1) = "$1.00", f(1.123) = "$1.12"), or
> - Max only (e.g., f(1) = "$1", f(1.123) = "$1.12").
>
>>
>> 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
>> <javascript:_e(%7B%7D,'cvml','CLDR-Users at unicode.org');>
>> http://unicode.org/mailman/listinfo/cldr-users
>>
>>
>
>
> --
> +55 (16) 98138-1582, +1 (415) 568-5854, skype: rxaviers
> http://rafael.xavier.blog.br
>
>

-- 
+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/20141129/dfe35128/attachment.html>


More information about the CLDR-Users mailing list