[Python Glasgow] converting string reperesenting a number in Scientific notation to int

Hedieh Ebrahimi hedieh.ebrahimi at amphos21.com
Thu May 15 18:39:14 CEST 2014


Hi all ,

I have a string that shows a number in scientific notation.

like this:
"2.000E-03"

How can I comvert this to an integer so the result would be
myIntValue=0.002

I need to convert my values and then use them later on in my code.

Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/glasgow/attachments/20140515/a1868a25/attachment.html>


More information about the Glasgow mailing list