copysign,
copysignf, copysignl
— copy sign
#include
<math.h>
double
copysign(double
x, double y);
float
copysignf(float
x, float y);
long double
copysignl(long
double x, long double
y);
The copysign(),
copysignf(), and copysignl()
routines conform to ISO/IEC 9899:1999
(“ISO C99”). They implement the Copysign
function recommended by IEEE Std 754-1985.
The copysign(),
copysignf(), and copysignl()
functions appeared in 4.3BSD,
FreeBSD 2.0, and FreeBSD
5.3, respectively.