.\" Copyright 2003 Walter Harms, Andries Brouwer .\" Distributed under GPL. .\" .TH FDIM 3 2003-07-24 "" "Linux Programmer's Manual" .SH NAME fdim, fdimf, fdiml \- positive difference .SH SYNOPSIS .B #include .sp .BI "double fdim(double " x ", double " y ); .br .BI "float fdimf(float " x ", float " y ); .br .BI "long double fdiml(long double " x ", long double " y ); .sp Compile with \fI\-std=c99\fP; link with \fI\-lm\fP. .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)