_chgsign
, _chgsignf
, _chgsignl
Reverses the sign of a floating-point argument.
Syntax
double _chgsign(
double x
);
float _chgsignf(
float x
);
long double _chgsignl(
long double x
);
Parameters
x
The floating-point value to be changed.
Return value
The _chgsign
functions return a value that's equal to the floating-point argument x
, but with its sign reversed. There's no error return.
Requirements
Routine | Required header |
---|---|
_chgsign |
<float.h> |
_chgsignf , _chgsignl |
<math.h> |
For more compatibility information, see Compatibility.
See also
Math and floating-point support
fabs
, fabsf
, fabsl
copysign
, copysignf
, copysignl
, _copysign
, _copysignf
, _copysignl
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru