[issue12345] Add math.tau

Tim Peters report at bugs.python.org
Wed Aug 10 00:56:12 EDT 2016


Tim Peters added the comment:

Hmm.  I'd test that tau is exactly equal to 2*pi.  All Python platforms  (past, present, and plausible future ones) have binary C doubles, so the only difference between pi and 2*pi _should_ be in the exponent (multiplication by 2 is exact).  Else we screwed up one or both mantissas (typed the constant wrong, and/or the C compiler is rounding incorrectly) - which would be bad.

----------
nosy: +tim.peters

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12345>
_______________________________________


More information about the Python-bugs-list mailing list