Formatting numbers

Fredrik Lundh fredrik at pythonware.com
Wed Sep 8 05:30:06 EDT 1999


Ken Koller <ken.koller at kla-tencor.com> wrote:
> I'm sure there will be errers <sic> but something like:
> 
> for array in list:
>     for number in array:
>         print '%+10.4f' % (number,),
>     print

footnote: there's no need to wrap the value
in a singleton tuple:

         print '%+10.4f' % number,

</F>





More information about the Python-list mailing list