Re: exponential float formmating

2007-09-07 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > In all cases I need the number to start with 0 > 0.13000E+01 So why not move the decimal point left one, and add one to the exponent. -- http://mail.python.org/mailman/listinfo/python-list

Re: exponential float formmating

2007-09-07 Thread Steven D'Aprano
On Fri, 07 Sep 2007 13:42:30 +, Marc 'BlackJack' Rintsch wrote: > On Fri, 07 Sep 2007 06:08:19 -0700, zunbeltz wrote: > >> For compatibility reasons with an old program I have to format string >> in exponential format with the following format >> >> 0.xE-yy >> >> This means that the num

Re: exponential float formmating

2007-09-07 Thread [EMAIL PROTECTED]
On Sep 7, 6:08 am, [EMAIL PROTECTED] wrote: > Hi, > > For compatibility reasons with an old program I have to format string > in exponential > format with the following format > > 0.xE-yy > > This means that the number start always by 0 and after the exponent > there should be alway the sing an

Re: exponential float formmating

2007-09-07 Thread zunbeltz
On 7 sep, 15:42, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Fri, 07 Sep 2007 06:08:19 -0700, zunbeltz wrote: > > For compatibility reasons with an old program I have to format string > > in exponential format with the following format > > > 0.xE-yy > > > This means that the number

Re: exponential float formmating

2007-09-07 Thread Marc 'BlackJack' Rintsch
On Fri, 07 Sep 2007 06:08:19 -0700, zunbeltz wrote: > For compatibility reasons with an old program I have to format string > in exponential format with the following format > > 0.xE-yy > > This means that the number start always by 0 and after the exponent > there should be alway the sing a

exponential float formmating

2007-09-07 Thread zunbeltz
Hi, For compatibility reasons with an old program I have to format string in exponential format with the following format 0.xE-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.13000