How to convert arabic numbers received from JTextField to a Double?
Joined: Jul 14, 2005
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?
Joined: Feb 23, 2007
Google tells me to parse with a DecimalFormat object. It'll likely be able to tell you the details.