_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 );
Parameters
- 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 | Compatibility |
|---|---|---|
| _copysign | <float.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
| _copysignl | <math.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
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.