Scientific Notation

Alex Martelli aleax at mail.comcast.net
Sat Dec 3 21:39:00 EST 2005


Dustan <DustanGroups at gmail.com> wrote:

> How can I get a number into scientific notation? I have a preference
> for the format '1 E 50' (as an example), but if it's well known, it
> works.

You mean something like:

>>> print '%e' % (1e50)
1.000000e+50

...?


Alex



More information about the Python-list mailing list