finding out the precision of floats

greg greg at cosc.canterbury.ac.nz
Thu Mar 1 19:09:37 EST 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.

--
Greg



More information about the Python-list mailing list