Click or drag to resize
mathsignbit Method (Double)
Gets the sign bit of the specified floating-point number.

Namespace:  C
Assembly:  C.math (in C.math.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static int signbit(
	double number
)

Parameters

number
Type: SystemDouble
A floating-point number.

Return Value

Type: Int32
The sign bit of the specified floating-point number.
Remarks

The function detects the sign bit of zeroes, infinities, and NaN. Along with copysign(Double, Double), signbit(Double) is one of the only two portable ways to examine the sign of NaN.

See signbit in the C standard documentation.

See Also