_copysign

Return one value with the sign of another.

double_copysign(doublex**,doubley);**

Routine Required Header Compatibility
_copysign <float.h> Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

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

Parameters

x

Double-precision floating-point value to be changed

y

Double-precision floating-point value

Floating-Point Support Routines

See Also   fabs, _chgsign