Karim BELABAS on Wed, 30 Jul 2003 16:32:00 +0200 (MEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Floating Point Error


On Mon, 21 Jul 2003, Jon Perry wrote:
>                   GP/PARI CALCULATOR Version 2.1.3 (released)
[...]
> ? \p100
>    realprecision = 105 significant digits (100 digits displayed)
> ? x=Pi
> %1 =
> 3.1415926535897932384626433832795028841971693993751058209749445923078164062
> 86208998628034825342117068
> ? y=x*10^100
> %2 =
> 314159265358979323846264338327950288419716939937510582097494459230781640628
> 62089986280348253421170680.

These improper roundings [ spurious 0 above ] were fixed in CVS some time ago
(2.2.5-F80). I won't backport this to the stable version.

Cheers,

    Karim.
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425   Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://www.parigp-home.de/  [PARI/GP]