From: Alejandro Colomar Date: Sun, 31 Mar 2024 20:38:52 +0000 (+0200) Subject: manual: significand() uses FLT_RADIX, not 2 X-Git-Tag: glibc-2.40~303 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95c70fd0d467450e75354316453824693f07c3cc;p=thirdparty%2Fglibc.git manual: significand() uses FLT_RADIX, not 2 It's implemented using scalb(), which uses FLT_RADIX, AFAIK. Link: Reported-by: Morten Welinder Cc: Adhemerval Zanella Netto Cc: Vincent Lefevre Cc: DJ Delorie Cc: Paul Zimmermann Cc: Andreas Schwab Signed-off-by: Alejandro Colomar Reviewed-by: DJ Delorie --- diff --git a/manual/arith.texi b/manual/arith.texi index 0742c08ac4..034d9d2ba5 100644 --- a/manual/arith.texi +++ b/manual/arith.texi @@ -1395,7 +1395,7 @@ The @code{scalb} function is the BSD name for @code{ldexp}. @standards{BSD, math.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} @code{significand} returns the mantissa of @var{x} scaled to the range -@math{[1, 2)}. +@math{[1, @code{FLT_RADIX})}. It is equivalent to @w{@code{scalb (@var{x}, (double) -ilogb (@var{x}))}}. This function exists mainly for use in certain standardized tests