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

2008-07-15 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> 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.

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

2008-07-15 Thread TanaT
New submission from TanaT <[EMAIL PROTECTED]>: 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