Add comment about FLT_RADIX.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Feb 2007 18:08:24 +0000 (18:08 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Feb 2007 18:08:24 +0000 (18:08 +0000)
lib/printf-frexp.c

index 46750e4..e6032a4 100644 (file)
 # 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