title
_chgsign, _chgsignf, _chgsignl | Microsoft Docs
ms.custom
ms.date
11/04/2016
ms.reviewer
ms.suite
ms.technology
ms.tgt_pltfrm
ms.topic
article
apiname
_chgsignl
_chgsign
_chgsignf
apilocation
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-math-l1-1-0.dll
apitype
DLLExport
f1_keywords
_chgsignf
chgsign
_chgsignl
_chgsign
dev_langs
helpviewer_keywords
_chgsignl function
_chgsignf function
chgsign function
_chgsign function
ms.assetid
a6646f8e-213d-4564-8617-f43bc66f989f
caps.latest.revision
17
author
corob-msft
ms.author
corob
manager
ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw
_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
);
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 .
Floating-Point Support
fabs, fabsf, fabsl
copysign, copysignf, copysignl, _copysign, _copysignf, _copysignl