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

NAME

6       nan, nanf, nanl - return quiet NaN
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <math.h>
11
12       double nan(const char *tagp);
13
14
15       float nanf(const char *tagp);
16
17
18       long double nanl(const char *tagp);
19
20

DESCRIPTION

22       The function call nan("n-char-sequence") is equivalent to:
23
24         strtod("NAN(n-char-sequence)", (char **) NULL);
25
26
27
28       The function call nan(" ") is equivalent to:
29
30         strtod("NAN()", (char **) NULL)
31
32
33
34       If  tagp  does  not point to an n-char sequence or an empty string, the
35       function call is equivalent to:
36
37         strtod("NAN", (char **) NULL)
38
39
40
41       Function calls to nanf() and nanl() are equivalent to the corresponding
42       function calls to strtof() and strtold(). See strtod(3C).
43

RETURN VALUES

45       These functions return a quiet NaN.
46

ERRORS

48       No errors are defined.
49

ATTRIBUTES

51       See attributes(5) for descriptions of the following attributes:
52
53
54
55
56       ┌─────────────────────────────┬─────────────────────────────┐
57       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │Interface Stability          │Standard                     │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │MT-Level                     │MT-Safe                      │
62       └─────────────────────────────┴─────────────────────────────┘
63

SEE ALSO

65       math.h(3HEAD), strtod(3C), attributes(5), standards(5)
66
67
68
69SunOS 5.11                        12 Jul 2006                          nan(3M)
Impressum