#include <math.h>
float fminf(float x, float y);
double fmin(double x, double y);
long double fminl(long double x, long double y);
#include <tgmath.h>
real-floating-type fmin(real-floating-type x, real-floating-type y);
The fmin
functions return the lower of their two arguments
x
and y
.
#include <math.h>
float fmaxf(float x, float y);
double fmax(double x, double y);
long double fmaxl(long double x, long double y);
#include <tgmath.h>
real-floating-type fmax(real-floating-type x, real-floating-type y);
The fmax
functions return the higher of their two arguments
x
and y
.
#include <math.h>
float fdimf(float x, float y);
double fdim(double x, double y);
long double fdiml(long double x, long double y);
#include <tgmath.h>
real-floating-type fdim(real-floating-type x, real-floating-type y);
The fdim
functions return x-y
if positive,
or zero otherwise.