_chgsign

Changes the sign of a floating point number.

double _chgsign (double x);

Required Header
<math.h>

Return Value

This function returns the value x with the opposite sign.

Parameters

x

  The floating point number to convert

Mathematics

See Also    fabs, _copysign