ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
How convert string '1e7' to an integer?
by Peng Yu other posts by this author
Nov 7 2009 5:20PM messages near this date
Re: PyQt processEvents not processing | Re: How convert string '1e7' to an integer?
It seems that int() does not convert '1e7'. I'm wondering what
function to use to convert '1e7' to an integer?

> >> int('1e7')
Traceback (most recent call last):
  File "<stdin> ", line 1, in <module>
ValueError: invalid literal for int() with base 10: '1e7'
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Peng Yu
Christian Heimes
Thomas
Mick Krippendorf
Roel Schroeven
Benjamin Kaplan
Mrab
Ben Finney
Mensanator
Gary Herron
Mick Krippendorf
Tim Chase

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved