This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/11322] New: Factual error about negative zeros in glibc manual.
- From: "nbowler at draconx dot ca" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Feb 2010 00:48:50 -0000
- Subject: [Bug manual/11322] New: Factual error about negative zeros in glibc manual.
- Reply-to: sourceware-bugzilla at sourceware dot org
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.