[Top][All Lists]

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

Floating number printing

From: Hans Aberg
Subject: Floating number printing
Date: Fri, 17 May 2002 19:17:50 +0200

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

In article <address@hidden>,
address@hidden (Robert Corbett) wrote:

>Paul Eggert <address@hidden> wrote in message
>> address@hidden (Robert Corbett) writes:
>> > Paul Eggert <address@hidden> wrote in message
>> >
>> > > It's too bad that C doesn't have an easy way to print a floating point
>> > > number with the minimal number of digits such that it can be read back
>> > > in without loss of information.  Now _that_ would be useful.
>> >
>> > I implemented code that does that.
>> That's nice.  Is that code publicly available, or have you written up
>> its ideas?  (If it's in the Sun C library somewhere, how do I access
>> it?)
>My code is not publicly available, but David Gay's code is.  His paper
>is available from
>It is paper 90/4-10.ps.  The paper tells how to get the code.
>                                        Sincerely,
>                                        Bob Corbett

  Hans Aberg

reply via email to

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