summaryrefslogtreecommitdiff
path: root/man3/fdim.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2004-11-03 13:51:07 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2004-11-03 13:51:07 +0000
commitfea681dafb1363a154b7fc6d59baa83d2a9ebc5c (patch)
tree8ea275c0f242af739617d0afc3e1b16c4eff3dc2 /man3/fdim.3
Import of man-pages 1.70
Diffstat (limited to 'man3/fdim.3')
-rw-r--r--man3/fdim.327
1 files changed, 27 insertions, 0 deletions
diff --git a/man3/fdim.3 b/man3/fdim.3
new file mode 100644
index 00000000..bfef9d65
--- /dev/null
+++ b/man3/fdim.3
@@ -0,0 +1,27 @@
+.\" Copyright 2003 Walter Harms, Andries Brouwer
+.\" Distributed under GPL.
+.\"
+.TH FDIM 3 2003-07-24 "" "math routines"
+.SH NAME
+fdim, fdimf, fdiml \- positive difference
+.SH SYNOPSIS
+.B #include <math.h>
+.sp
+.BI "double fdim(double " x ", double " y );
+.sp
+.BI "float fdimf(float " x ", float " y );
+.sp
+.BI "long double fdiml(long double " x ", long double " y );
+.sp
+Link with \-lm.
+.SH DESCRIPTION
+These functions return max(\fIx\fP-\fIy\fP,0).
+If
+.I x
+or
+.I y
+or both are NaN, Nan is returned.
+.SH "CONFORMING TO"
+C99
+.SH "SEE ALSO"
+.BR fmax (3)