Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert Localized formatted String in Amount?  RSS feed

 
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
Posts: 20893
81
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
Boost this thread!