diff options
author | Bruno Haible <bruno@clisp.org> | 2007-02-25 18:08:24 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-02-25 18:08:24 +0000 |
commit | c4dcbfedc7468a2d820ffa82e656eaf75b159c0e (patch) | |
tree | faa2986a1cf15ca4f5fa512f9281d2455ea79146 /lib/printf-frexp.c | |
parent | f8846ba58bead46114645f7604f5d8faaea7b444 (diff) | |
download | gnulib-c4dcbfedc7468a2d820ffa82e656eaf75b159c0e.tar.gz |
Add comment about FLT_RADIX.
Diffstat (limited to 'lib/printf-frexp.c')
-rw-r--r-- | lib/printf-frexp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/printf-frexp.c b/lib/printf-frexp.c index 46750e485e..e6032a4fb0 100644 --- a/lib/printf-frexp.c +++ b/lib/printf-frexp.c @@ -29,6 +29,10 @@ # include <float.h> # include <math.h> +/* This file assumes FLT_RADIX = 2. If FLT_RADIX is a power of 2 greater + than 2, or not even a power of 2, some rounding errors can occur, so that + then the returned mantissa is only guaranteed to be <= 2.0, not < 2.0. */ + # ifdef USE_LONG_DOUBLE # define FUNC printf_frexpl # define DOUBLE long double |