[issue3365] in module math, PI value seems to be wrong after digit 17th

Mark Dickinson report at bugs.python.org
Tue Jul 15 18:19:21 CEST 2008


Mark Dickinson <dickinsm at gmail.com> added the comment:

This is not a bug (though it's commonly reported as such :-) ).  Given 
that not all real numbers can be represented as floats, math.pi is 
necessarily an approximation to true Pi, and you're
printing that approximation out to high precision.

No, pi isn't computed in Python;  it's a constant, stored as an IEEE 754 
double.

----------
nosy: +marketdickinson
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list