src/js/builtin/intl/NumberFormat.js
/**
 * Returns the number of decimal digits to be used for the given currency.
 *
 * Spec: ECMAScript Internationalization API Specification, 11.1.3.
 */
Returns the number of decimal digits to be used for the given currency.
Spec: ECMAScript Internationalization API Specification, 11.1.3.
Returns the number of decimal digits to be used for the given currency . Spec : ECMAScript Internationalization API Specification 11 . 1 . 3 .
function CurrencyDigits(currency) {
    assert(typeof currency === "string", "currency is a string value");
    assert(IsWellFormedCurrencyCode(currency), "currency is well-formed");
    assert(currency == toASCIIUpperCase(currency), "currency is all upper-case");
    if (hasOwn(currency, currencyDigits))
        return currencyDigits[currency];
    return 2;
}
function CurrencyDigits ( currency ) { assert ( typeof currency === "string" , "currency is a string value" ) ; assert ( IsWellFormedCurrencyCode ( currency ) , "currency is well-formed" ) ; assert ( currency == toASCIIUpperCase ( currency ) , "currency is all upper-case" ) ; if ( hasOwn ( currency , currencyDigits ) ) return currencyDigits [ currency ] ; return 2 ; }
Returns the number of decimal digits to be used for the given currency.
Returns the number of decimal digits to be used for the given currency .