double fmin (double x , double y); float fminf (float x , float y);long double fminl (long double x, long double y);
double fmin (double x , double y); float fmin (float x , float y);long double fmin (long double x, long double y); double fmin (Type1 x , Type2 y); // additional overloads
<cmath>
) 中还为其他算术类型的组合(Type1 和 Type2)提供了其他重载:这些重载在计算前有效地将参数强制转换为 double
,除非至少有一个参数是 long double
类型(在这种情况下,两者都将强制转换为 long double
)。
|
|
fmin (100.0, 1.0) = 1.000000 fmin (-100.0, 1.0) = -100.000000 fmin (-100.0,-1.0) = -100.000000 |