What about:
try {
doubleprice =
Double.valueOf(req.getParameter("price")).doubleValue();
}
catch (NumberFormatException nx) {
}
?
----- Original Message -----
From: raj <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 01, 1999 4:06 PM
Subject: parsing double value
> Hi,
>
> How do I parse double value?
> eg: for long value
> long priceval =Long.parseLong(req.getParameter("price"));
>
> Thanks
>
> -raj-
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html