9103 opengroup acknowledgement should be properly formatted in man pages
[unleashed.git] / usr / src / man / man3m / islessequal.3m
blob0c6ac81dfc2476c787c2ba7b0a0a02b67a9c2cfb
1 .\"
2 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3 .\" permission to reproduce portions of its copyrighted documentation.
4 .\" Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
6 .\"
7 .\" The Institute of Electrical and Electronics Engineers and The Open
8 .\" Group, have given us permission to reprint portions of their
9 .\" documentation.
10 .\"
11 .\" In the following statement, the phrase ``this text'' refers to portions
12 .\" of the system documentation.
13 .\"
14 .\" Portions of this text are reprinted and reproduced in electronic form
15 .\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16 .\" Standard for Information Technology -- Portable Operating System
17 .\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19 .\" Engineers, Inc and The Open Group.  In the event of any discrepancy
20 .\" between these versions and the original IEEE and The Open Group
21 .\" Standard, the original IEEE and The Open Group Standard is the referee
22 .\" document.  The original Standard can be obtained online at
23 .\" http://www.opengroup.org/unix/online.html.
24 .\"
25 .\" This notice shall appear on any product containing this material.
26 .\"
27 .\" The contents of this file are subject to the terms of the
28 .\" Common Development and Distribution License (the "License").
29 .\" You may not use this file except in compliance with the License.
30 .\"
31 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32 .\" or http://www.opensolaris.org/os/licensing.
33 .\" See the License for the specific language governing permissions
34 .\" and limitations under the License.
35 .\"
36 .\" When distributing Covered Code, include this CDDL HEADER in each
37 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38 .\" If applicable, add the following below this CDDL HEADER, with the
39 .\" fields enclosed by brackets "[]" replaced with your own identifying
40 .\" information: Portions Copyright [yyyy] [name of copyright owner]
41 .\"
42 .\"
43 .\" Copyright (c) 2001, The IEEE and The Open Group.  All Rights Reserved.
44 .\" Portions Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
45 .\"
46 .TH ISLESSEQUAL 3M "Jul 12, 2006" "SunOS 5.11" "Mathematical Library Functions"
47 .SH NAME
48 islessequal \- test if x is less than or equal to y
49 .SH SYNOPSIS
50 .LP
51 .nf
52 c99 [ \fIflag\fR... ] \fIfile\fR... \fB-lm\fR [ \fIlibrary\fR... ]
53 #include <math.h>
55 \fBint\fR \fBislessequal\fR(\fBreal-floating\fR \fIx\fR, \fBreal-floating\fR \fIy\fR);
56 .fi
58 .SH DESCRIPTION
59 .sp
60 .LP
61 The \fBislessequal()\fR macro determines whether its first argument is less
62 than or equal to its second argument. The value of \fBislessequal\fR(\fIx\fR,
63 \fIy\fR) is equal to (\fIx\fR) \(<= (\fIy\fR); however, unlike (\fIx\fR) \(<=
64 (\fIy\fR), \fBislessequal\fR(\fIx\fR, \fIy\fR) does not raise the invalid
65 floating-point exception when \fIx\fR and \fIy\fR are unordered.
66 .SH RETURN VALUES
67 .sp
68 .LP
69 Upon successful completion, the \fBislessequal()\fR macro returns the value of
70 (\fIx\fR) \(<= (\fIy\fR).
71 .sp
72 .LP
73 If \fIx\fR or \fIy\fR is NaN, 0 is returned.
74 .SH ERRORS
75 .sp
76 .LP
77 No errors are defined.
78 .SH USAGE
79 .sp
80 .LP
81 The relational and equality operators support the usual mathematical
82 relationships between numeric values. For any ordered pair of numeric values,
83 exactly one of the relationships (less, greater, and equal) is true. Relational
84 operators can raise the invalid floating-point exception when argument values
85 are NaNs. For a NaN and a numeric value, or for two NaNs, just the unordered
86 relationship is true. This macro is a quiet (non-floating-point exception
87 raising) version of a relational operator. It facilitates writing efficient
88 code that accounts for quiet NaNs without suffering the invalid floating-point
89 exception. In the \fBSYNOPSIS\fR section, \fBreal-floating\fR indicates that
90 the argument is an expression of \fBreal-floating\fR type.
91 .SH ATTRIBUTES
92 .sp
93 .LP
94 See \fBattributes\fR(5) for descriptions of the following attributes:
95 .sp
97 .sp
98 .TS
99 tab(    ) box;
100 cw(2.75i) |cw(2.75i)
101 lw(2.75i) |lw(2.75i)
103 ATTRIBUTE TYPE  ATTRIBUTE VALUE
105 Interface Stability     Standard
107 MT-Level        MT-Safe
110 .SH SEE ALSO
113 \fBisgreater\fR(3M), \fBisgreaterequal\fR(3M), \fBisless\fR(3M),
114 \fBislessgreater\fR(3M), \fBisunordered\fR(3M), \fBmath.h\fR(3HEAD),
115 \fBattributes\fR(5), \fBstandards\fR(5)