summaryrefslogtreecommitdiff
path: root/lib/libm/man/nan.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/man/nan.3')
-rw-r--r--lib/libm/man/nan.316
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/libm/man/nan.3 b/lib/libm/man/nan.3
index cddd0cbade2..0273361e902 100644
--- a/lib/libm/man/nan.3
+++ b/lib/libm/man/nan.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nan.3,v 1.1 2008/07/29 22:08:43 martynas Exp $
+.\" $OpenBSD: nan.3,v 1.2 2008/07/30 08:02:35 jmc Exp $
.\"
.\" Copyright (c) 2007 David Schultz <das@FreeBSD.org>
.\" All rights reserved.
@@ -26,15 +26,13 @@
.\"
.\" $FreeBSD: src/lib/msun/man/nan.3,v 1.1 2007/12/16 21:19:28 das Exp $
.\"
-.Dd $Mdocdate: July 29 2008 $
+.Dd $Mdocdate: July 30 2008 $
.Dt NAN 3
.Os
.Sh NAME
.Nm nan ,
.Nm nanf
.Nd quiet \*(Nas
-.Sh LIBRARY
-.Lb libm
.Sh SYNOPSIS
.In math.h
.Ft double
@@ -45,17 +43,17 @@
The
.Dv NAN
macro expands to a quiet \*(Na (Not A Number).
-Similarly, each of the
-.Fn nan ,
+Similarly both the
+.Fn nan
and
.Fn nanf
functions generate a quiet \*(Na value without raising an invalid exception.
The argument
.Fa s
should point to either an empty string or a hexadecimal representation
-of a non-negative integer (e.g., "0x1234".)
+of a non-negative integer (e.g. 0x1234).
In the latter case, the integer is encoded in some free bits in the
-representation of the \*(Na, which sometimes store
+representation of the \*(Na, which sometimes stores
machine-specific information about why a particular \*(Na was generated.
There are 22 such bits available for
.Vt float
@@ -86,7 +84,7 @@ macro instead.
.Xr strtod 3
.Sh STANDARDS
The
-.Fn nan ,
+.Fn nan
and
.Fn nanf
functions and the