Share via


_chgsign, _chgsignf, _chgsignl

變換浮點引數的正負號。

語法

double _chgsign(
   double x
);
float _chgsignf(
   float x
);
long double _chgsignl(
   long double x
);

參數

x
要變更的浮點值。

傳回值

_chgsign 函式會傳回等於浮點引數 x 的值,但正負號相反。 沒有傳回錯誤。

需求

常式 必要的標頭
_chgsign <float.h>
_chgsignf, _chgsignl <math.h>

如需相容性詳細資訊,請參閱相容性

另請參閱

數學和浮點支援
fabs, fabsf, fabsl
copysign, copysignf, copysignl, _copysign, _copysignf, _copysignl