double fdim (double x , double y); float fdimf (float x , float y);long double fdiml (long double x, long double y);
double fdim (double x , double y); float fdim (float x , float y);long double fdim (long double x, long double y); double fdim (Type1 x , Type2 y); // additional overloads
x>y
,则该函数返回 x-y
,否则返回零。
|
|
fdim (2.0, 1.0) = 1.000000 fdim (1.0, 2.0) = 0.000000 fdim (-2.0,-1.0) = 0.000000 fdim (-1.0,-2.0) = 1.000000 |