From c4dcbfedc7468a2d820ffa82e656eaf75b159c0e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Feb 2007 18:08:24 +0000 Subject: [PATCH] Add comment about FLT_RADIX. --- lib/printf-frexp.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.0