1isnand(3C)               Standard C Library Functions               isnand(3C)
2
3
4

NAME

6       isnand,  isnanf,  finite, fpclass, unordered - determine type of float‐
7       ing-point number
8

SYNOPSIS

10       #include <ieeefp.h>
11
12       int isnand(double dsrc);
13
14
15       int isnanf(float fsrc);
16
17
18       int finite(double dsrc);
19
20
21       fpclass_t fpclass(double dsrc);
22
23
24       int unordered(double dsrc1, double dsrc2);
25
26

DESCRIPTION

28       The isnand() and isnanf() functions return TRUE  (1)  if  the  argument
29       dsrc or fsrc is a NaN;  otherwise they return FALSE (0).
30
31
32       The  fpclass()  function  returns one of the following classes to which
33       dsrc belongs:
34
35       FP_SNAN       signaling NaN
36
37
38       FP_QNAN       quiet NaN
39
40
41       FP_NINF       negative infinity
42
43
44       FP_PINF       positive infinity
45
46
47       FP_NDENORM    negative denormalized non-zero
48
49
50       FP_PDENORM    positive denormalized non-zero
51
52
53       FP_NZERO      negative zero
54
55
56       FP_PZERO      positive zero
57
58
59       FP_NNORM      negative normalized non-zero
60
61
62       FP_PNORM      positive normalized non-zero
63
64
65
66       The finite() function returns TRUE (1) if the argument dsrc is  neither
67       infinity nor NaN; otherwise it returns  FALSE (0).
68
69
70       The  unordered()  function returns TRUE (1) if one of its two arguments
71       is unordered with respect to the other argument.  This is equivalent to
72       reporting  whether either argument is NaN.  If neither argument is NaN,
73       FALSE (0) is returned.
74
75
76       None of these functions generates  an  exception,  even  for  signaling
77       NaNs.
78

RETURN VALUES

80       See DESCRIPTION.
81

ATTRIBUTES

83       See attributes(5) for descriptions of the following attributes:
84
85
86
87
88       ┌─────────────────────────────┬─────────────────────────────┐
89       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
90       ├─────────────────────────────┼─────────────────────────────┤
91       │MT-Level                     │MT-Safe                      │
92       └─────────────────────────────┴─────────────────────────────┘
93

SEE ALSO

95       fpgetround(3C), isnan(3M), attributes(5)
96
97
98
99SunOS 5.11                        15 Jun 2004                       isnand(3C)
Impressum