exponential float formmating

zunbeltz at gmail.com zunbeltz at gmail.com
Fri Sep 7 15:08:19 CEST 2007


Hi,

For compatibility reasons with an old program I have to format string
in exponential
format with the following format

0.xxxxxE-yy

This means that the number start always by 0 and after the exponent
there should be alway the sing and 2 number for the exponent.

for example 13 shoud be 0.13000E+02
I always get 1.30000E001

Thanks,

Zunbeltz




More information about the Python-list mailing list