2 .\" Copyright 1989 AT&T. Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ISNAND 3C "Jun 15, 2004"
8 isnand, isnanf, finite, fpclass, unordered \- determine type of floating-point
15 \fBint\fR \fBisnand\fR(\fBdouble\fR \fIdsrc\fR);
20 \fBint\fR \fBisnanf\fR(\fBfloat\fR \fIfsrc\fR);
25 \fBint\fR \fBfinite\fR(\fBdouble\fR \fIdsrc\fR);
30 \fBfpclass_t\fR \fBfpclass\fR(\fBdouble\fR \fIdsrc\fR);
35 \fBint\fR \fBunordered\fR(\fBdouble\fR \fIdsrc1\fR, \fBdouble\fR \fIdsrc2\fR);
41 The \fBisnand()\fR and \fBisnanf()\fR functions return \fBTRUE\fR (\fB1\fR) if
42 the argument \fIdsrc\fR or \fIfsrc\fR is a NaN; otherwise they return
43 \fBFALSE\fR (\fB0\fR).
46 The \fBfpclass()\fR function returns one of the following classes to which
87 \fB\fBFP_NDENORM\fR\fR
90 negative denormalized non-zero
96 \fB\fBFP_PDENORM\fR\fR
99 positive denormalized non-zero
126 negative normalized non-zero
135 positive normalized non-zero
140 The \fBfinite()\fR function returns \fBTRUE\fR (\fB1\fR) if the argument
141 \fIdsrc\fR is neither infinity nor NaN; otherwise it returns \fBFALSE\fR
145 The \fBunordered()\fR function returns \fBTRUE\fR (\fB1\fR) if one of its two
146 arguments is unordered with respect to the other argument. This is equivalent
147 to reporting whether either argument is NaN. If neither argument is NaN,
148 \fBFALSE\fR (\fB0\fR) is returned.
151 None of these functions generates an exception, even for signaling NaNs.
159 See \fBattributes\fR(5) for descriptions of the following attributes:
167 ATTRIBUTE TYPE ATTRIBUTE VALUE
175 \fBfpgetround\fR(3C), \fBisnan\fR(3M), \fBattributes\fR(5)