float does not parse '0.000000E+00'
Paolo Redaelli
redaelli at inc.it
Sat Jun 3 17:56:15 EDT 2000
Peter Schneider-Kamp wrote:
>
> Paolo Redaelli wrote:
> >
> > but if I run a program that does x=float(x) where x = "0.000000E+00 "
> > (being a string) here's the output.
>
> Can you give some code? I tried the following:
>
> === BEGIN dumm.py ===
> x = "0.000000E+00 "
> x = float(x)
> === END dumm.py ===
>
> it worked just fine. What version of Python are you using?
1.5.2 from RedHat 6.2
It works for me if I use the interactive version.
I took that very code, placed into a program and whooops... it hangs!
That's driving me crazy.....
--
______________________________
/ Paolo Redaelli \
| redaelli at inc.it |
| http://gnupaghe.netpedia.net |
\------------------------------/
More information about the Python-list
mailing list