finding out the precision of floats

greg greg at
Fri Mar 2 01:09:37 CET 2007

John Machin wrote:

> Storing 1.1 and using it in calculations may save you a few
> microseconds a day in your real-time apps.

The main advantage would be clarity of code.

> naming 1.1 as "anualRate" (sic) is utterly ludicrous.

So call it annualMultiplicationFactor or something
in the code.


More information about the Python-list mailing list