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

NAME

6       isless - test if x is less than y
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

32       None.
33

APPLICATION USAGE

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

RATIONALE

48       None.
49

FUTURE DIRECTIONS

51       None.
52

SEE ALSO

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