summaryrefslogtreecommitdiff
path: root/lib/libc/gen/modf.3
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-12-12 00:12:48 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-12-12 00:12:48 +0000
commit6e85cd9adb81bab81ea90a901d1669093fe7d5be (patch)
tree91ebfc1aa74a578c6647fa8aa1564a0ba2749dee /lib/libc/gen/modf.3
parent34a2174c04d44a11755070b1c7538a65d4654147 (diff)
- document and mlink frexpf, ldexpf, modff added 13 years ago
- document frexpl, ldexpl added recently a tweak and ok jmc@
Diffstat (limited to 'lib/libc/gen/modf.3')
-rw-r--r--lib/libc/gen/modf.317
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/libc/gen/modf.3 b/lib/libc/gen/modf.3
index bc60ce9516e..12cba1fab0e 100644
--- a/lib/libc/gen/modf.3
+++ b/lib/libc/gen/modf.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: modf.3,v 1.6 2007/05/31 19:19:28 jmc Exp $
+.\" $OpenBSD: modf.3,v 1.7 2008/12/12 00:12:47 martynas Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,16 +31,19 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: December 12 2008 $
.Dt MODF 3
.Os
.Sh NAME
-.Nm modf
+.Nm modf ,
+.Nm modff
.Nd extract signed integral and fractional values from floating-point number
.Sh SYNOPSIS
.Fd #include <math.h>
.Ft double
.Fn modf "double value" "double *iptr"
+.Ft float
+.Fn modff "float value" "float *iptr"
.Sh DESCRIPTION
The
.Fn modf
@@ -52,10 +55,16 @@ It stores the integral part as a
.Li double
in the object pointed to by
.Fa iptr .
+The
+.Fn modff
+function is a single precision version of
+.Fn modf .
.Sh RETURN VALUES
The
.Fn modf
-function returns the signed fractional part of
+and
+.Fn modff
+functions return the signed fractional part of
.Fa value .
.Sh SEE ALSO
.Xr frexp 3 ,