Formatting currencies

Rafael Xavier rxaviers at gmail.com
Mon Dec 1 06:52:53 CST 2014


One more question.

3.2 Special Pattern Characters
<http://www.unicode.org/reports/tr35/tr35-numbers.html#Special_Pattern_Characters>

¤ (U+00A4) Prefix or suffix No Currency sign, replaced by currency symbol. If
doubled, replaced by international currency symbol. If tripled, uses the
long form of the decimal symbol. If present in a pattern, the monetary
decimal separator and grouping separators (if available) are used instead
of the numeric ones.

The doubled and tripled forms are simply not mentioned in 4 Currencies
<http://www.unicode.org/reports/tr35/tr35-numbers.html#Currencies> section.
There's also no mention defining what the "long form" is. Instead, there is
displayName and there's an extensive algorithm explaining how displayNames
should be implemented. It's also important to notice that unitPattern
potentially varies depending of the plural count form. The tripled form
doesn't support such variation. Therefore, they are not equivalent.

Are the doubled and tripled forms defined somewhere else? Have they been
deprecated and the above table not updated?



On Sat, Nov 29, 2014 at 7:03 PM, Rafael Xavier <rxaviers at gmail.com> wrote:

> 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>
>> escribió:
>>
>>
>>
>> On Fri, Nov 28, 2014 at 7:46 PM, Steven R. Loomis <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>
>>> 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
>>> 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
>
>


-- 
+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/20141201/4c66f23f/attachment.html>


More information about the CLDR-Users mailing list