double b = new Double(a).doubleValue();

You'll need to either catch or throw a NumberFormatException.

BTW:  This isn't a Tomcat question (or even a JSP one for that matter).
You might want to check out the forums at http://java.sun.com for java issues 
like this.

Good-luck


On Thursday 20 May 2004 05:49 pm, you wrote:
> Hi all
>
> I have a basic problems in JSP.
>
> How can I convert a String value into double, Like
>
> String a="0.2345";
> double b=0;
>
> I need to assign the value of variable a into varuble
> b, How can I do that.
>
> Thanks in advance for ur help!!!!!!
>
>
>
>
> =====
> Regards
>
> Sohail Mahmood
> (416) 636-2553
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Domains � Claim yours for only $14.70/year
> http://smallbusiness.promotions.yahoo.com/offer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to