- **Java**
(*http://www.velocityreviews.com/forums/f30-java.html*)

- - **converting exponential number to float number**
(*http://www.velocityreviews.com/forums/t389985-converting-exponential-number-to-float-number.html*)

converting exponential number to float numberCan anyone tell me how do i convert a string contianing exponential
number to decimal/float number? Is there any built in method for doing this? |

Re: converting exponential number to float numberruds wrote:
> Can anyone tell me how do i convert a string contianing exponential > number to decimal/float number? > Is there any built in method for doing this? > Can you give an example of a string you want to convert? Patricia |

Re: converting exponential number to float numberruds wrote:
> Can anyone tell me how do i convert a string contianing exponential > number to decimal/float number? > Is there any built in method for doing this? If I understand what you are asking for, double d = Double.parseDouble("1.23e+4"); fills the bill. -- Eric Sosman esosman@acm-dot-org.invalid |

Re: converting exponential number to float numberEric Sosman wrote: > ruds wrote: > > Can anyone tell me how do i convert a string contianing exponential > > number to decimal/float number? > > Is there any built in method for doing this? > > If I understand what you are asking for, > > double d = Double.parseDouble("1.23e+4"); > > fills the bill. > > -- > Eric Sosman > esosman@acm-dot-org.invalid Or, if its a constant string, why bother parsing at all? double d = 1.23e+4; |

All times are GMT. The time now is 05:35 AM. |

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.

SEO by vBSEO ©2010, Crawlability, Inc.