_copysign
div
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_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

Show:
© 2016 Microsoft