Re: Desperately seeking strtod()
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Thu, 28 Jul 2005 08:15:34 GMT
Ingo R. Homann wrote:
Hi,
Eric Sosman wrote:
Thanks for the suggestion. I'm already doing something with a similar flavor: I use a regexp to find the longest number-ish prefix and then put it through Double.valueOf() for a more rigorous check (the regexp matches nonsense like "." and ".E-3").
Perhaps you may optimize your regexp then?
Ciao, Ingo
The Javadoc for valueOf(String) in java.lang.Double, at http://java.sun.com/j2se/1.5.0/docs/api/index.html, contains sample code for regular expression screening of the input string.
Patricia .
- References:
- Desperately seeking strtod()
- From: Eric Sosman
- Re: Desperately seeking strtod()
- From: "."
- Re: Desperately seeking strtod()
- From: Eric Sosman
- Re: Desperately seeking strtod()
- From: Ingo R. Homann
- Desperately seeking strtod()
- Prev by Date: Re: Desperately seeking strtod()
- Next by Date: How to set J.developer for ORACLE..??
- Previous by thread: Re: Desperately seeking strtod()
- Next by thread: j2ee installation help windowsxp
- Index(es):