This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

getNumberOfCurrencyDigits

Returns the number of decimal digits for the given currency. Its value depends upon the presence of cents in that particular currency.

getNumberOfCurrencyDigits(code: string): number
      
      getNumberOfCurrencyDigits(code: string): number
    

Parameters

code

Type: string.

Returns

number