Mercurial > hg > octave-nkf > gnulib-hg
changeset 8253:c59696ff6dbc
Add comment about FLT_RADIX.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 25 Feb 2007 18:08:24 +0000 |
parents | 2b8747d9d9dd |
children | bbea39ab5a58 |
files | lib/printf-frexp.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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