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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -