_copysign, _copysignl
div
eof
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, _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.

Show:
© 2016 Microsoft