This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/11322] New: Factual error about negative zeros in glibc manual.


The glibc manual contains two similar sentences, the first of which
claims

  Negative zero behaves identically to zero in all calculations, unless
  you test the sign bit with signbit or copysign.

But this is false.  For example, 1.0/0.0 is positive infinity but
1.0/-0.0 is negative infinity.  Another example is that atan2(0.0, 0.0),
atan2(-0.0, 0.0), atan2(0.0, -0.0) and atan2(-0.0, -0.0) are all
different (0, -0, pi and -pi, respectively).  The list goes on.

These two sentences should just be removed, and I will attach a patch to
that effect.

-- 
           Summary: Factual error about negative zeros in glibc manual.
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: manual
        AssignedTo: roland at gnu dot org
        ReportedBy: nbowler at draconx dot ca
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11322

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]