File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 19543
    
  16

Have you already looked at NumberFormat?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert Localized formatted String in Amount?
 
Similar Threads
Using NumberFormat to validate data entry
string to timestamp
how do i get todays dat without the time
Reading a stream from a socket
NumberFormatException Error