1isgreater(3M)           Mathematical Library Functions           isgreater(3M)
2
3
4

NAME

6       isgreater - test if x greater than y
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <math.h>
11
12       int isgreater(real-floating x, real-floating y);
13
14

DESCRIPTION

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

RETURN VALUES

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

ERRORS

29       No errors are defined.
30

USAGE

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

ATTRIBUTES

45       See attributes(5) for descriptions of the following attributes:
46
47
48
49
50       ┌─────────────────────────────┬─────────────────────────────┐
51       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │Interface Stability          │Standard                     │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │MT-Level                     │MT-Safe                      │
56       └─────────────────────────────┴─────────────────────────────┘
57

SEE ALSO

59       isgreaterequal(3M),   isless(3M),  islessequal(3M),  islessgreater(3M),
60       isunordered(3M), math.h(3HEAD), attributes(5), standards(5)
61
62
63
64SunOS 5.11                        12 Jul 2006                    isgreater(3M)
Impressum