aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-10-27 22:01:41 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2021-10-27 22:12:48 +0200
commit5d89c3f31e7cfb057aa66d24c75f1f488de34280 (patch)
tree62122477c8b78630599ffedbe243adc05748c684 /man3
parent8bf30825a30dece0b0e4294ca3d0f2351ba15fc5 (diff)
downloadman-pages-5d89c3f31e7cfb057aa66d24c75f1f488de34280.tar.gz
pow.3: RETURN VALUE: Clarify that -0.0 is a valid underflow result
The standards are a bit unclear (or I couldn't find it), but Joseph confirmed that glibc documents this behavior, and M. Welinder tested that Solaris also behaves in the same way. Reported-by: M. Welinder <mwelinder@gmail.com> Bug: 214815 <https://bugzilla.kernel.org/show_bug.cgi?id=214815> Cc: Joseph Myers <joseph@codesourcery.com> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/pow.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/pow.3 b/man3/pow.3
index ccf6375c04..69ddadc3ad 100644
--- a/man3/pow.3
+++ b/man3/pow.3
@@ -82,7 +82,7 @@ respectively, with the mathematically correct sign.
.PP
If result underflows, and is not representable,
a range error occurs,
-and 0.0 is returned.
+and 0.0 with the appropriate sign is returned.
.\" POSIX.1 does not specify the sign of the zero,
.\" but http://sources.redhat.com/bugzilla/show_bug.cgi?id=2678
.\" points out that the zero has the wrong sign in some cases.