我想用thisDecimalFormatSymbols格式化这个BigDecimal值621500.0
:
- zeroDigit ='0'
- groupingSeparator ='。'
- decimalSeparator =','
- perMill ='‰'
- percent ='%'
- digit ='#'
- patternSeparator =';'
- infinity =“∞”
- NaN =“ ”
- minusSign =' - '
- currencySymbol =“¤”
- intlCurrencySymbol =“XXX”
- monetarySeparator ='。'
- 指数='E'
- locale = {Locale @ 59611}“en”
- currency = {Currency @ 59612}“XXX”
- serialVersionOnStream = 3
我使用这种模式"€ #,0;€ -#,0"
当我执行new DecimalFormat("€ #,0;€ -#,0", numberFormatSymbols).format(value)
时,它会返回€6.2.1.5.0.0 ,而不是€62150.0 。知道为什么吗?它与语言环境有关?
感谢。