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

NAME

6       isgreaterequal - test if x greater than or equal to y
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

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

ERRORS

30       No errors are defined.
31

USAGE

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

ATTRIBUTES

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

SEE ALSO

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