From 95c70fd0d467450e75354316453824693f07c3cc Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 31 Mar 2024 22:38:52 +0200 Subject: 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 --- manual/arith.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1