cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Clelland <>
Subject Re: Globalization getCurrencyPattern
Date Thu, 23 Jan 2014 16:32:46 GMT
Looking at the source, it appears that support for that is spotty -- on
Android, it is hard-coded to '0'.

On iOS, it corresponds to the 'roundingIncrement' returned from
CFNumberFormatterGetDecimalInfoForCurrencyCode. In Ubuntu, I *think* it
corresponds to the same value.

That value should be the smallest unit of a currency -- the number that all
amounts are rounded to. For USD, it would be "0.01"; for JPY, it would be

It doesn't necessarily correspond to the number of decimal places; a
country which used dollars and cents but rounded all prices to the nearest
nickel would have 2 decimal places, but rounding would be 0.05.

On Thu, Jan 16, 2014 at 9:54 PM, John Wargo <> wrote:

> In the docs it says that the result value for Rounding is:
>  *
>    *rounding*: The rounding increment to use when parsing and
> formatting./(Number)/
> Can someone tell me what that means? I googled around and couldn't find
> anything conclusive.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message