Re: How to covert String("6,400.0") to Double ?
- From: Thomas Weidenfeller <nobody@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 11:38:31 +0200
moon_ils-se@xxxxxxxxxxxx wrote:
public static double removePeriod(String format) {
double a = 23.0;
format = "23.0";
a = Double.parseDouble(format,10);
return a;
}
Is that supposed to be a question?
May I recommend that you read
http://www.yoda.arachsys.com/java/newsgroups.html
and http://www.catb.org/~esr/faqs/smart-questions.html
particular
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise
and follow that advice prior to posting?
You might also want to consider posting to comp.lang.java.help instead. But also, read and follow the above advice before posting here ore there.
/Thomas
-- The comp.lang.java.gui FAQ: ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/ .
- References:
- How to covert String("6,400.0") to Double ?
- From: moon_ils-se
- How to covert String("6,400.0") to Double ?
- Prev by Date: Re: "Virtual memory" framework for Java
- Next by Date: Re: import magic
- Previous by thread: How to covert String("6,400.0") to Double ?
- Next by thread: Re: How to covert String("6,400.0") to Double ?
- Index(es):
Relevant Pages
|
|