[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ajug-members]: Casting Double
double d = Double.parseDouble(String s);
Tom Boyce
-----Original Message-----
From: Cann, Gary [mailto:gcann@airgatepcsa.com]
Sent: Tuesday, May 11, 2004 5:18 PM
To: ajug-members@ajug.org
Subject: [ajug-members]: Casting Double
I'm trying to cast a sting into a double so that I cat get a total...
example:
String str_a = "100.25";
double dbl_a = 0;
dbl_a = Double.parseDouble(str_a);
This will just throw an exception of 100.25 and stop my application...
Thanks for any help...
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 5/7/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 5/7/2004