Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS® V1R5 |
#define _ISOC99_SOURCE
#include <math.h>
double fdim(double x, double y);
float fdimf(float x, float y);
long double fdiml(long double x, long double y);
#define _TR1_C99
#include <math.h>
float fdim(float x, float y);
long double fdim(long double x, long double y);
Function | Hex | IEEE |
---|---|---|
fdim | X | X |
fdimf | X | X |
fdiml | X | X |
The fdim functions return the positive difference between x and y.