_chgsign, _chgsignf, _chgsignl
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at _chgsign, _chgsignf, _chgsignl.
Reverses the sign of a floating-point argument.
double _chgsign( double x ); float _chgsignf( float x ); long double _chgsignl( long double x );
Parameters
x
The floating-point value to be changed.
The _chgsign functions return a value that's equal to the floating-point argument x, but with its sign reversed. There is no error return.
| Routine | Required header |
|---|---|
_chgsign | <float.h> |
_chgsignf, _chgsignl | <math.h> |
For more compatibility information, see Compatibility.
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.
Floating-Point Support
fabs, fabsf, fabsl
copysign, copysignf, copysignl, _copysign, _copysignf, _copysignl
Show: