signbit(3)

signbit3

Determine whether a floating-point number's sign is negative

Usage

#include <math.h>

int

signbit(real-floating x);

Library

Standard C Library (libc, -lc)

Overview

The signbit() macro takes an argument of x. It returns non-zero if the value of the argument's sign is negative, otherwise 0.

Releases

135 releases since Mac OS X 10.4; the text changed 1 time.

  1. 10.4–10.4.11
  2. 10.5–26.5

Standards

The signbit() macro conforms to ISO/IEC 9899:1999 (“ISO C99”).

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.