{ "id": "api/common/getNumberOfCurrencyDigits", "title": "getNumberOfCurrencyDigits", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

getNumberOfCurrencyDigitslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Reports the number of decimal digits for a given currency.\nThe value depends upon the presence of cents in that particular currency.

\n\n \n
\n \n \n \n\n
\n \n\n getNumberOfCurrencyDigits(code: string): number\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n code\n string\n

The currency code.

\n\n
\n\n \n
Returns
\n

number: The number of decimal digits, typically 0 or 2.

\n\n \n\n\n \n\n \n
\n\n\n \n
\n

See alsolink

\n \n
\n\n\n \n\n\n\n \n\n\n
\n
\n\n\n" }