signbit

Is a macro that determines whether an argument value is positive or negative.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  signbit ( x );
  

Parameters

x

(IN) Specifies the argument.

Return Values

If the value is negative, returns a nonzero value. Otherwise, returns 0.

Remarks

The macro can be used with double, float, and long double arguments.

See Also