string formatting - DecimalFormat with DecimalFormatSymbols problems in Java -
i'm tring format bigdecimal value 621500.0
thisdecimalformatsymbols:
- zerodigit = '0'
- groupingseparator = '.'
- decimalseparator = ','
- permill = '‰'
- percent = '%'
- digit = '#'
- patternseparator = ';'
- infinity = "∞"
- nan = "�"
- minussign = '-'
- currencysymbol = "¤"
- intlcurrencysymbol = "xxx"
- monetaryseparator = '.'
- exponential = 'e'
- locale = {locale@59611} "en"
- currency = {currency@59612} "xxx"
- serialversiononstream = 3
and use pattern "€ #,0;€ -#,0"
, when execute new decimalformat("€ #,0;€ -#,0", numberformatsymbols).format(value)
returns in € 6.2.1.5.0.0 instead of € 62150.0. idea why? related locale? thanks.
Comments
Post a Comment