Karim BELABAS on Mon, 22 Nov 1999 15:40:54 +0100 (MET)


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

Re: sprintf()ing: bug?


[Ilya:]
> I cannot find how to make an analogue of rounding-sprintf() in PARI.
> 
> Should not this "work":
> 
>     ? \p 3
>        realprecision = 9 significant digits (3 digits displayed)
>     ? 2.34567
>     %1 = 2.34
>     ? print(2.34567)
>     2.34
>     ? Str(2.34567)
>     %2 = "2.3456699997"

It should, and now does (current CVS).

  Karim.
__
Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (00 33) 1 69 15 57 48
F-91405 Orsay (France)           Fax: (00 33) 1 69 15 60 19
--
PARI/GP Home Page: http://hasse.mathematik.tu-muenchen.de/ntsw/pari/