getNumberOfCurrencyDigits
报告给定货币的小数位数。其值取决于该特定货币中分币是否存在。
Reports the number of decimal digits for a given currency. The value depends upon the presence of cents in that particular currency.
getNumberOfCurrencyDigits(code: string): number
参数
code | string | 货币代码。 The currency code. |
返回值
小数位数,通常为 0 或 2。
number
: The number of decimal digits, typically 0 or 2.