Re: Man page issues: logb, significand, cbrt, log2, log10, exp10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 29, 2024 at 07:28:10PM -0500, Morten Welinder wrote:
> significand:
> The range [1,2) should be [1,FLT_RADIX)

Hi Morten,

I've fixed this with the following commit.  Thanks for the report!

Have a lovely night!
Alex

---
commit 6003cc006de65d8798a3324605c8b9d5abeef231 (HEAD -> contrib)
Author: Alejandro Colomar <alx@xxxxxxxxxx>
Date:   Tue Mar 5 01:44:44 2024 +0100

    significand.3: significand uses FLT_RADIX, not 2
    
    It's implemented using scalb(), which uses FLT_RADIX.
    
    Reported-by: Morten Welinder <mwelinder@xxxxxxxxx>
    Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx>

diff --git a/man3/significand.3 b/man3/significand.3
index e991a822a..f835f5511 100644
--- a/man3/significand.3
+++ b/man3/significand.3
@@ -36,7 +36,8 @@ .SH SYNOPSIS
 .SH DESCRIPTION
 These functions return the mantissa of
 .I x
-scaled to the range [1,2).
+scaled to the range
+.RB [ 1 ,\~ FLT_RADIX ).
 They are equivalent to
 .P
 .in +4n


-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux