double copysign (double x , double y); float copysignf (float x , float y);long double copysignl (long double x, long double y);
double copysign (double x , double y); float copysign (float x , float y);long double copysign (long double x, long double y); double copysign (Type1 x , Type2 y); // additional overloads
|
|
copysign ( 10.0,-1.0) = -10.0 copysign (-10.0,-1.0) = -10.0 copysign (-10.0, 1.0) = 10.0 |