This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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
NumberFormatException Error
Reading a stream from a socket
string to timestamp
how do i get todays dat without the time
Using NumberFormat to validate data entry