VMS Help
CRTL, copysign
*Conan The Librarian
|
Returns x with the same sign as y.
This function is supported on OpenVMS Integrity servers and
Alpha only.
Format
#include <math.h>
double copysign (double x, double y);
float copysignf (float x, float y);
(Integrity servers, Alpha)
long double copysignl (long double x, long double y);
(Integrity servers, Alpha)
x
A real value.
y
A real value.
The copysign functions return x with the same sign as y. IEEE 754
requires copysign(x,NaN), copysignf(x,NaN), and copysignl(x,NaN)
to return +x or -x.
x The value of x with the same sign as y.