Two Laptop Bag*
The moose likes Java in General and the fly likes How to convert arabic numbers received from JTextField to a Double? 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 arabic numbers received from JTextField to a Double?" Watch "How to convert arabic numbers received from JTextField to a Double?" New topic
Author

How to convert arabic numbers received from JTextField to a Double?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reaidng my post.
I have a Swing application which users enter some infomation in its boxes. some of the information are arabic numbers like ۱۲۳.۵ which is an arabic double number.
I am able to convert a long number simply using Long.parsLong(number) but when I use Double.parsDouble(num) I get the following error:



Is there any solution for this?

Thanks.
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Google tells me to parse with a DecimalFormat object. It'll likely be able to tell you the details.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert arabic numbers received from JTextField to a Double?
 
Similar Threads
Jtable and database results
how to use parseInt()
nullPointerException on entity manager methods
problem with insert and select
WITH clause generates ORA-01009: missing mandatory parameter