summaryrefslogtreecommitdiffstats
path: root/man3/fdim.3
blob: bfef9d6567000688dab9716067cf66795eec81aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)