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

TanaT report at bugs.python.org
Tue Jul 15 18:13:45 CEST 2008


New submission from TanaT <anatole.ng at free.fr>:

Hello,
This is my first Issue creation (I looked for "PI" in issue tracker and
found nothing): Please forgive any mistake.

Here is the point :
I typed the following commands :
>>> import math
>>> print '%1.26f' % math.pi
3.14159265358979311599796347
In fact, PI value is
3,14159265358979323846264338327950288...
                 ^
I don't know if PI value is computed in Python : If it is, this issue is
probably already dead ! But if PI is just saved in math library, there
could be an improvement.

----------
components: None
messages: 69693
nosy: TanaT
severity: normal
status: open
title: in module math, PI value seems to be wrong after digit 17th
type: behavior
versions: Python 2.5

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


More information about the Python-bugs-list mailing list