• 개요
@angular/common

getNumberOfCurrencyDigits

함수
사용 중단 권고v18.0부터

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

사용 중단을 권고합니다.

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

API

function getNumberOfCurrencyDigits(code: string): number;
@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

The number of decimal digits, typically 0 or 2.

상세 내용으로 이동