Hey Santosh,

I think the simplest way is to replace the commas with nothing.

     Double.valueOf("10,000.00".replaceAll(",", ""));

You can also use the NumberFormat utility.

     try {
 
NumberFormat.getInstance(Locale.US).parse("10,000.00").doubleValue();
     } catch (ParseException e) {
          e.printStackTrace();
     }

Hope that helps,

Tom

On Aug 20, 1:18 am, Santosh kumar <[email protected]> wrote:
> Hi,
>
> I want to get the value (for example 10,000.00) from the text box, but i am
> getting only 10.0 from that text box using DOM. (But i am getting right
> values which are below 1,000.00)
> Is there any logic to convert the comma separated number which are in the
> text into the valid double number...
> please reply !!
>
> --
> Thanks & Regards
>
> *S a n t o s h  k u m a r . k*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to