#include <math.h> double
fdim (double x double y); float
fdimf (float x float y); long double
fdiml (long double x long double y);
DESCRIPTION
The
fdim (,);
fdimf (,);
and
fdiml ();
functions return the positive difference between
Fa x
and
Fa y .
That is, if
Fa x- Ns Fa y
is positive, then
Fa x- Ns Fa y
is returned.
If either
Fa x
or
Fa y
is an , then an is returned.
Otherwise, the result is
+0.0
Overflow or underflow may occur iff the exact result is not
representable in the return type.
No other exceptions are raised.