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

NAME

6       isless - test if x is less than y
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

22       Upon successful completion, the isless() macro returns the value of (x)
23       < (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       isgreater(3M),  isgreaterequal(3M), islessequal(3M), islessgreater(3M),
60       isunordered(3M), math.h(3HEAD), attributes(5), standards(5)
61
62
63
64SunOS 5.11                        12 Jul 2006                       isless(3M)
Impressum