Math errors in python
Dan Bishop
danb_83 at yahoo.com
Mon Sep 20 06:02:25 EDT 2004
bokr at oz.net (Bengt Richter) wrote in message news:<cilbv7$sh7$0$216.39.172.122 at theriver.com>...
> On 19 Sep 2004 15:24:31 -0700, danb_83 at yahoo.com (Dan Bishop) wrote:
> [...]
> >There are, of course, reasonably accurate rational approximations of
> >pi. For example, 355/113 (accurate to 6 decimal places), 312689/99532
> >(9 decimal places), or 3126535/995207 (11 decimal places). Also, the
> >IEEE 754 double-precision representation of pi is equal to the
> >rational number 4503599627370496/281474976710656.
> >>> divmod(4503599627370496,281474976710656)
> (16L, 0L)
>
> a little glitch somewhere ? ;-)
Oops. I meant 884279719003555/281474976710656.
More information about the Python-list
mailing list