1
by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages. |
1 |
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved |
2
by Francesco Paolo Lovergine
* Alligned to linux main manpages edition. |
2 |
.TH "ISLESSGREATER" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual" |
1
by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages. |
3 |
.\" islessgreater |
4 |
.SH NAME |
|
5 |
islessgreater \- test if x is less than or greater than y
|
|
6 |
.SH SYNOPSIS |
|
7 |
.LP
|
|
8 |
\fB#include <math.h>
|
|
9 |
.br
|
|
10 |
.sp
|
|
11 |
int islessgreater(real-floating\fP \fIx\fP\fB, real-floating\fP \fIy\fP\fB); |
|
12 |
.br
|
|
13 |
\fP
|
|
14 |
.SH DESCRIPTION |
|
15 |
.LP
|
|
16 |
The \fIislessgreater\fP() macro shall determine whether its first |
|
17 |
argument is less than or greater than its second argument. |
|
18 |
The \fIislessgreater\fP( \fIx\fP, \fIy\fP) macro is similar to |
|
19 |
(\fIx\fP)\ <\ (\fIy\fP)\ ||\ (\fIx\fP)\ >\ (\fIy\fP); however, \fIislessgreater\fP( |
|
20 |
\fIx\fP, |
|
21 |
\fIy\fP) shall not raise the invalid floating-point exception when |
|
22 |
\fIx\fP and \fIy\fP are unordered (nor shall it evaluate |
|
23 |
\fIx\fP and \fIy\fP twice). |
|
24 |
.SH RETURN VALUE |
|
25 |
.LP
|
|
26 |
Upon successful completion, the \fIislessgreater\fP() macro shall |
|
27 |
return the value of |
|
28 |
(\fIx\fP)\ <\ (\fIy\fP)\ ||\ (\fIx\fP)\ >\ (\fIy\fP). |
|
29 |
.LP
|
|
30 |
If \fIx\fP or \fIy\fP is NaN, 0 shall be returned. |
|
31 |
.SH ERRORS |
|
32 |
.LP
|
|
33 |
No errors are defined. |
|
34 |
.LP
|
|
35 |
\fIThe following sections are informative.\fP |
|
36 |
.SH EXAMPLES |
|
37 |
.LP
|
|
38 |
None. |
|
39 |
.SH APPLICATION USAGE |
|
40 |
.LP
|
|
41 |
The relational and equality operators support the usual mathematical |
|
42 |
relationships between numeric values. For any ordered pair |
|
43 |
of numeric values, exactly one of the relationships (less, greater, |
|
44 |
and equal) is true. Relational operators may raise the invalid |
|
45 |
floating-point exception when argument values are NaNs. For a NaN |
|
46 |
and a numeric value, or for two NaNs, just the unordered |
|
47 |
relationship is true. This macro is a quiet (non-floating-point exception |
|
48 |
raising) version of a relational operator. It facilitates |
|
49 |
writing efficient code that accounts for NaNs without suffering the |
|
50 |
invalid floating-point exception. In the SYNOPSIS section, |
|
51 |
\fBreal-floating\fP indicates that the argument shall be an expression |
|
52 |
of \fBreal-floating\fP type. |
|
53 |
.SH RATIONALE |
|
54 |
.LP
|
|
55 |
None. |
|
56 |
.SH FUTURE DIRECTIONS |
|
57 |
.LP
|
|
58 |
None. |
|
59 |
.SH SEE ALSO |
|
60 |
.LP
|
|
61 |
\fIisgreater\fP() , \fIisgreaterequal\fP() , \fIisless\fP() , \fIislessequal\fP() |
|
62 |
, \fIisunordered\fP() , the Base Definitions volume of IEEE\ Std\ 1003.1-2001 |
|
63 |
\fI<math.h>\fP |
|
64 |
.SH COPYRIGHT |
|
65 |
Portions of this text are reprinted and reproduced in electronic form |
|
66 |
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology |
|
67 |
-- Portable Operating System Interface (POSIX), The Open Group Base |
|
68 |
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of |
|
69 |
Electrical and Electronics Engineers, Inc and The Open Group. In the |
|
70 |
event of any discrepancy between this version and the original IEEE and |
|
71 |
The Open Group Standard, the original IEEE and The Open Group Standard |
|
72 |
is the referee document. The original Standard can be obtained online at |
|
73 |
http://www.opengroup.org/unix/online.html . |