summaryrefslogtreecommitdiffstats
path: root/lib/msun/man
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2008-06-19 22:39:53 +0000
committerdas <das@FreeBSD.org>2008-06-19 22:39:53 +0000
commit9e4d306f6fe863ceecc097ac5554fee53ab1d7e5 (patch)
tree4708ca4fbfb23bf4b3fdff4cfb4fe046c81a47d5 /lib/msun/man
parent4f152d47fa3740ab3f9b056d153678d594931414 (diff)
downloadFreeBSD-src-9e4d306f6fe863ceecc097ac5554fee53ab1d7e5.zip
FreeBSD-src-9e4d306f6fe863ceecc097ac5554fee53ab1d7e5.tar.gz
Implement fmodl.
Document fmodl and fix some errors in the fmod manpage.
Diffstat (limited to 'lib/msun/man')
-rw-r--r--lib/msun/man/fmod.346
1 files changed, 25 insertions, 21 deletions
diff --git a/lib/msun/man/fmod.3 b/lib/msun/man/fmod.3
index 9a73675..670efdb 100644
--- a/lib/msun/man/fmod.3
+++ b/lib/msun/man/fmod.3
@@ -28,12 +28,13 @@
.\" from: @(#)fmod.3 5.1 (Berkeley) 5/2/91
.\" $FreeBSD$
.\"
-.Dd May 2, 1991
+.Dd June 19, 2008
.Dt FMOD 3
.Os
.Sh NAME
.Nm fmod ,
-.Nm fmodf
+.Nm fmodf ,
+.Nm fmodl
.Nd floating-point remainder functions
.Sh LIBRARY
.Lb libm
@@ -43,41 +44,44 @@
.Fn fmod "double x" "double y"
.Ft float
.Fn fmodf "float x" "float y"
+.Ft long double
+.Fn fmodl "long double x" "long double y"
.Sh DESCRIPTION
The
-.Fn fmod
-and the
-.Fn fmodf
+.Fn fmod ,
+.Fn fmodf ,
+and
+.Fn fmodl
functions compute the floating-point remainder of
.Fa x Ns / Fa y .
.Sh RETURN VALUES
-The
-.Fn fmod
-and the
-.Fn fmodf
+If
+.Fa y
+is non-zero, the
+.Fn fmod ,
+.Fn fmodf ,
+and
+.Fn fmodl
functions return the value
.Sm off
.Fa x - Em i * Fa y ,
.Sm on
for some integer
-.Em i
-such that, if
-.Fa y
-is non-zero, the result has the same sign as
+.Em i ,
+such that the result has the same sign as
.Fa x
and magnitude less than the magnitude of
.Fa y .
If
.Fa y
-is zero, whether a domain error occurs or the
-.Fn fmod
-and the
-.Fn fmodf
-function returns zero is implementation-defined.
+is zero, a \*(Na is produced.
.Sh SEE ALSO
.Xr math 3
.Sh STANDARDS
The
-.Fn fmod
-function conforms to
-.St -isoC .
+.Fn fmod ,
+.Fn fmodf ,
+and
+.Fn fmodl
+functions conform to
+.St -isoC-99 .
OpenPOWER on IntegriCloud