mirror of https://github.com/mkerrisk/man-pages
remainder.3: Document fixes for EDOM handling for range errors
The bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783 was fixed in glibc 2.15. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
bde63f932d
commit
f5a9a2041a
|
@ -152,9 +152,10 @@ when calling these functions.
|
|||
The following errors can occur:
|
||||
.TP
|
||||
Domain error: \fIx\fP is an infinity and \fIy\fP is not a NaN
|
||||
.\" .I errno
|
||||
.\" is set to
|
||||
.\" .BR EDOM .
|
||||
.I errno
|
||||
is set to
|
||||
.BR EDOM
|
||||
(but see BUGS).
|
||||
An invalid floating-point exception
|
||||
.RB ( FE_INVALID )
|
||||
is raised.
|
||||
|
@ -162,9 +163,6 @@ is raised.
|
|||
These functions do not set
|
||||
.IR errno
|
||||
for this case.
|
||||
.\" FIXME . Is it intentional that these functions do not set errno?
|
||||
.\" They do set errno for the y == 0 case, below.
|
||||
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783
|
||||
.TP
|
||||
Domain error: \fIy\fP is zero\" [XXX see bug above] and \fIx\fP is not a NaN
|
||||
.I errno
|
||||
|
@ -225,6 +223,18 @@ returns a NaN, as expected, but wrongly causes a domain error;
|
|||
it should yield a silent NaN.
|
||||
.\" FIXME . this bug occurs as at glibc 2.8.
|
||||
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6779
|
||||
|
||||
Before glibc 2.15,
|
||||
.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783
|
||||
.I errno
|
||||
was not set to
|
||||
.BR EDOM
|
||||
for the domain error that occurs when
|
||||
.I x
|
||||
is an infinity and
|
||||
.I y
|
||||
is not a NaN.
|
||||
.I errno was not set
|
||||
.SH EXAMPLE
|
||||
The call "remainder(29.0, 3.0)" returns \-1.
|
||||
.SH SEE ALSO
|
||||
|
|
Loading…
Reference in New Issue