Name
fdim, fdimf, fdiml — positive difference
Synopsis
#include <math.h>
double fdim( |
double |
x, |
| |
double |
y); |
float
fdimf( |
float |
x, |
| |
float |
y); |
long
double fdiml( |
long double |
x, |
| |
long double |
y); |
![[Note]](../stylesheet/note.png) |
Note |
|
Compile with −std=c99; link with
−lm.
|
DESCRIPTION
These functions return max(x-y,0). If x or y or both are NaN, Nan is
returned.
SEE ALSO
fmax(3)
Copyright 2003 Walter Harms, Andries Brouwer
Distributed under GPL.
|