Two Laptop Bag
The moose likes Java in General and the fly likes How to convert Localized formatted String in Amount? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to convert Localized formatted String in Amount?" Watch "How to convert Localized formatted String in Amount?" New topic
Author

How to convert Localized formatted String in Amount?

Shah Jenish
Greenhorn

Joined: Feb 19, 2009
Posts: 13
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

Joined: Oct 27, 2005
Posts: 20080
    
  30

Have you already looked at NumberFormat?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to convert Localized formatted String in Amount?
 
It's not a secret anymore!