Table of Contents
Previous Section Next Section

fdim

#include <math.h>float fdimf(float a, float b);double fdim(double a, double b);
long double fdiml(long double a, long double b);

fdim( ), fdimf( ), and fdiml( ) were defined by C99.

The fdim( ) family of functions returns zero if a is less than or equal to b. Otherwise, the result of ab is returned.

Related functions are remainder( ) and remquo( ).


Table of Contents
Previous Section Next Section