• Overview
@angular/common

getNumberOfCurrencyDigits

function
Deprecated

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

  
    function getNumberOfCurrencyDigits(  code: string): number;
  
  

getNumberOfCurrencyDigits

number

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

@deprecated

Angular recommends relying on the Intl API for i18n. This function should not be used anymore. Let Intl.NumberFormat determine the number of digits to display for the currency

@paramcodestring

The currency code.

@returnsnumber
Jump to details