Export (0) Print
Expand All
div
Expand Minimize
This topic has not yet been rated - Rate this topic

_copysign

Returns one value with the sign of another.

double _copysign( 
   double x,
   double y 
);

Parameters

x
Double-precision, floating-point value to be changed.
y
Double-precision, floating-point value.

Floating-Point Support Routines

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.

Requirements

Routine Required header Compatibility
_copysign <float.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

See Also

   fabs | _chgsign | Run-Time Routines and .NET Framework Equivalents

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.