parsing engineering symbols

Fredrik Lundh fredrik at pythonware.com
Wed Dec 21 13:37:26 EST 2005


Bengt Richter wrote:

> Nit: why not move 10** out of myfloat into SI_prefixes
>      (i.e., just retrieve precalculated factors)?

the table I cut and pasted from only listed the exponents.  if you want
to prefix 1e to all the constants, be my guest.

> Nit_2: No twinge of conscience shadowing str? ;-)

not the slightest.

</F>






More information about the Python-list mailing list