1ISGREATER(P)               POSIX Programmer's Manual              ISGREATER(P)
2
3
4

NAME

6       isgreater - test if x greater than y
7

SYNOPSIS

9       #include <math.h>
10
11       int isgreater(real-floating x, real-floating y);
12
13

DESCRIPTION

15       The  isgreater()  macro  shall  determine whether its first argument is
16       greater than its second argument. The value of isgreater( x,  y)  shall
17       be  equal  to  (x) > (y);  however,  unlike (x) > (y), isgreater( x, y)
18       shall not raise the invalid floating-point exception when x and  y  are
19       unordered.
20

RETURN VALUE

22       Upon  successful  completion,  the  isgreater()  macro shall return the
23       value of (x) > (y).
24
25       If x or y is NaN, 0 shall be returned.
26

ERRORS

28       No errors are defined.
29
30       The following sections are informative.
31

EXAMPLES

33       None.
34

APPLICATION USAGE

36       The relational and equality operators support  the  usual  mathematical
37       relationships  between  numeric values. For any ordered pair of numeric
38       values, exactly one of the relationships (less, greater, and equal)  is
39       true.  Relational operators may raise the invalid floating-point excep‐
40       tion when argument values are NaNs. For a NaN and a numeric  value,  or
41       for  two NaNs, just the unordered relationship is true. This macro is a
42       quiet (non-floating-point exception raising) version  of  a  relational
43       operator.  It facilitates writing efficient code that accounts for NaNs
44       without suffering the invalid floating-point exception. In the SYNOPSIS
45       section,  real-floating indicates that the argument shall be an expres‐
46       sion of real-floating type.
47

RATIONALE

49       None.
50

FUTURE DIRECTIONS

52       None.
53

SEE ALSO

55       isgreaterequal()  ,  isless()  ,  islessequal()  ,  islessgreater()   ,
56       isunordered()  ,  the  Base  Definitions volume of IEEE Std 1003.1-2001
57       <math.h>
58
60       Portions of this text are reprinted and reproduced in  electronic  form
61       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
62       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
63       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
64       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
65       event of any discrepancy between this version and the original IEEE and
66       The Open Group Standard, the original IEEE and The Open Group  Standard
67       is  the  referee document. The original Standard can be obtained online
68       at http://www.opengroup.org/unix/online.html .
69
70
71
72IEEE/The Open Group                  2003                         ISGREATER(P)
Impressum