[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ajug-members]: Casting Double
As a regular visitor on #java on irc.freenode.net, You would get eaten for
dinner with this question, here are some java resources.
http://java.sun.com/docs/books/tutorial/reallybigindex.html
----- Original Message -----
From: "Tom Boyce" <tom.boyce@wellfound.com>
To: <ajug-members@ajug.org>
Sent: Tuesday, May 11, 2004 6:35 PM
Subject: 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
>
>
>