signbit Macro

Purpose

Tests the sign.

Syntax

#include <math.h>

int signbit (x)
real-floating x;

Description

The signbit macro determines whether the sign of its argument value is negative. NaNs, zeros, and infinities have a sign bit.

Parameters

Item Description
x Specifies the value to be tested.

Return Values

The signbit macro returns a nonzero value if the sign of its argument value is negative.