NAME
nan, nanf, nanl - return 'Not a Number'
SYNOPSIS
#include <math.h> double nan(const char *tagp); float nanf(const char *tagp); long double nanl(const char *tagp); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): nan(), nanf(), nanl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
DESCRIPTION
These functions return a representation (determined by tagp) of a quiet NaN. If the implementation does not support quiet NaNs, these functions return zero. The call nan("char-sequence") is equivalent to: strtod("NAN(char-sequence)", NULL); Similarly, calls to nanf() and nanl() are equivalent to analogous calls to strtof(3) and strtold(3). The argument tagp is used in an unspecified manner. On IEEE 754 systems, there are many representations of NaN, and tagp selects one. On other systems it may do nothing.
VERSIONS
These functions first appeared in glibc in version 2.1.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). Interface Attribute Value nan(), nanf(), nanl() Thread safety MT-Safe locale
CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008. See also IEC 559 and the appendix with recommended functions in IEEE 754/IEEE 854.
SEE ALSO
isnan(3), strtod(3), math_error(7)
COLOPHON
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
More Linux Commands
manpages/typeahead_sp.3ncurses.html
typeahead_sp(3ncurses) - curses screen-pointer extension....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/slk_attron_sp.3ncurses.html
slk_attron_sp(3ncurses) - curses screen-pointer extension...
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/cvtbatch.8.html
cvtbatch(8) - Convert Usenet batch files to INN format......
cvtbatch reads standard input as a sequence of lines, converts each line, and writes it to standard output. It is used to convert simple batch files that contai
manpages/systemd-binfmt.service.8.html
systemd-binfmt.service(8) Configure additional binary format
systemd-binfmt.service is an early-boot service that registers additional binary formats for executables in the kernel. See binfmt.d(5) for information about th
manpages/ctl_cyrusdb.8.html
ctl_cyrusdb(8) - perform operations common to all Cyrus data
Ctl_cyrusdb is used to perform various administrative operations on the Cyrus databases. Ctl_cyrusdb reads its configuration options out of the imapd.conf(5) fi
manpages/Tcl_LimitExceeded.3.html
Tcl_LimitExceeded(3) - manage and check resource limits on i
Tcls interpreter resource limit subsystem allows for close control over how much computation time a script may use, and is useful for cases where a program is d
manpages/Tcl_GetNamespaceUnknownHandler.3.html
Tcl_GetNamespaceUnknownHandler(3) - manipulate namespaces...
Namespaces are hierarchic naming contexts that can contain commands and variables. They also maintain a list of patterns that describes what commands are export
manpages/gst-xmllaunch-0.10.1.html
gst-xmllaunch-0.10(1) - build and run a GStreamer pipeline f
gst-xmllaunch is a tool that is used to build and run a basic GStreamer pipeline, loading it from an XML description. You can produce the XML description using
manpages/uniconv.1.html
uniconv(1) - convert text to native formats through unicode
uniconv program decodes scripts with a certain encoding encodes them with some other encoding. The scipt is a 16,8 or 7 bit-byte stream. The converted text will
manpages/PAIR_NUMBER.3ncurses.html
attr_set(3ncurses) - curses character and window attribute c
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo
manpages/lspci.8.html
lspci(8) - list all PCI devices (Admin - Linux man page)....
lspci is a utility for displaying information about PCI buses in the system and devices connected to them. By default, it shows a brief list of devices. Use the
manpages/listen.2.html
listen(2) - listen for connections on a socket (Man Page)...
listen() marks the socket referred to by sockfd as a passive socket, that is, as a socket that will be used to accept incoming connection requests using accept(
