problem with the 'math' module in 2.5?

Jorgen Grahn grahn+nntp at
Sun Oct 15 05:36:35 EDT 2006

On Sun, 15 Oct 2006 00:18:29 -0400, Carsten Haese <carsten at> wrote:
> You're not getting *exactly* zero because you're not passing in *exactly* pi
> but a close approximation of pi.

That, plus the fact that floating-point math never is (in some sense)
precise. I am surprised noone brought up this one:

>>> .2

The original poster should read more on the subject. The Wikipedia article
seems like a good place to start:


  // Jorgen Grahn <grahn@        Ph'nglui mglw'nafh Cthulhu
\X/>  R'lyeh wgah'nagl fhtagn!

More information about the Python-list mailing list