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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       isgreater - test if x greater than y
13

SYNOPSIS

15       #include <math.h>
16
17       int isgreater(real-floating x, real-floating y);
18
19

DESCRIPTION

21       The isgreater() macro shall determine whether  its  first  argument  is
22       greater  than  its second argument. The value of isgreater( x, y) shall
23       be equal to (x) > (y); however,  unlike  (x) > (y),  isgreater(  x,  y)
24       shall  not  raise the invalid floating-point exception when x and y are
25       unordered.
26

RETURN VALUE

28       Upon successful completion, the  isgreater()  macro  shall  return  the
29       value of (x) > (y).
30
31       If x or y is NaN, 0 shall be returned.
32

ERRORS

34       No errors are defined.
35
36       The following sections are informative.
37

EXAMPLES

39       None.
40

APPLICATION USAGE

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

RATIONALE

55       None.
56

FUTURE DIRECTIONS

58       None.
59

SEE ALSO

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