Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to convert Localized formatted String in Amount?

 
Shah Jenish
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have once scenario where I need to convert localized string amount to parse and make it long amount.

Example: In russia, people write 1000 as "1 000".
Now what I need to do is to parse this "1 000" and get 1000.

Is there any way in java, which can identify if the particular string is localized price in some Locale and give us the normal long output?

Thanks,
Jenish
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you already looked at NumberFormat?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic