Export (0) Print
Expand All
div
eof
Expand Minimize

_copysign, _copysignl

Returns one value with the sign of another.

double _copysign( 
   double x,
   double y 
);
long double _copysignl( 
   long double x,
   long double y 
);

x

Double-precision or long double-precision, floating-point value to be changed.

y

Double-precision or long double-precision, floating-point value.

Floating-Point Support Routines

_copysign returns its double-precision, floating-point argument x with the same sign as its double-precision, floating-point argument y. _copysignl returns its long double-precision, floating-point argument x with the same sign as its long double-precision, floating-point argument y. There is no error return.

Routine

Required header

_copysign

<float.h>

_copysignl

<math.h>

For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Community Additions

ADD
Show:
© 2014 Microsoft