Not the right forum for this question, but here you go:

String s = "0.1234";
double d = Double.valueOf(s).doubleValue();

Robert

soh_mah 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