mathsignbit Method (Single) |
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)
Syntaxpublic static int signbit(
float number
)
Public Shared Function signbit (
number As Single
) As Integer
public:
static int signbit(
float number
)
static member signbit :
number : float32 -> int
Parameters
- number
- Type: SystemSingle
A floating-point number.
Return Value
Type:
Int32The sign bit of the specified floating-point
number.
Remarks
The function detects the sign bit of zeroes, infinities, and NaN. Along with
copysign(Single, Single), signbit(Single) is one
of the only two portable ways to examine the sign of NaN.
See signbit in the C standard documentation.
See Also