From: Bruno Haible Date: Sun, 25 Feb 2007 18:08:24 +0000 (+0000) Subject: Add comment about FLT_RADIX. X-Git-Tag: cvs-readonly~965 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c4dcbfedc7468a2d820ffa82e656eaf75b159c0e;p=gnulib.git Add comment about FLT_RADIX. --- diff --git a/lib/printf-frexp.c b/lib/printf-frexp.c index 46750e485..e6032a4fb 100644 --- a/lib/printf-frexp.c +++ b/lib/printf-frexp.c @@ -29,6 +29,10 @@ # include # include +/* 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