bug-gmp
[Top][All Lists]
Advanced

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

Re: Floating number printing


From: Kevin Ryde
Subject: Re: Floating number printing
Date: Thu, 23 May 2002 09:03:02 +1000
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu)

Hans Aberg <address@hidden> writes:
>
> Just in case GMP not already has the feature, I report it here (I got it
> from comp.std.c). An idea that comes to my mind is that it might be used if
> one describes float as pairs (f, a), where $a$ is a dynamically chosen
> accuracy (or precision): Then one would want to know how many digits to
> print.

You can ask to print all significant digits fairly easily, but reading
it back will probably be affected by rounding if the base isn't a
power of 2.  When the world switches to octal, as advocated by King
Charles XII of Sweden, all conversions can be exact.  :-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]