bug-gnulib
[Top][All Lists]
Advanced

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

Re: printf-frexp and the radix of floating point numbers


From: Bruno Haible
Subject: Re: printf-frexp and the radix of floating point numbers
Date: Tue, 27 Feb 2007 00:28:55 +0100
User-agent: KMail/1.5.4

Paul Eggert wrote:
> > Do they lack the C99 printf 'a' and 'A' conversion?)
> 
> It depends on the compiler and version.  For example, SAS/C 7.50
> (April 2004) has 'a' and 'A', but SAS/C 7.00 (April 2001) does not.

OK, a mainframe system with a 6 year old compiler - that's enough of a niche
market that I don't worry too much about the rounding errors that the code
may produce.

But I now use formulas based LDBL_DIG instead of LDBL_MANT_DIG, so that
the code will work with FLT_RADIX = 16 as well (modulo the mentioned
rounding errors).

Bruno





reply via email to

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