MCPcopy Index your code
hub / github.com/angular/angular / getNumberOfCurrencyDigits

Function getNumberOfCurrencyDigits

packages/common/src/i18n/locale_data_api.ts:797–804  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

795 * This function should not be used anymore. Let `Intl.NumberFormat` determine the number of digits to display for the currency
796 */
797export function getNumberOfCurrencyDigits(code: string): number {
798 let digits;
799 const currency = CURRENCIES_EN[code];
800 if (currency) {
801 digits = currency[ɵCurrencyIndex.NbOfDigits];
802 }
803 return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;
804}

Callers 2

formatCurrencyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…