signbit

Gets whether the value's sign bit is set.

@safe pure @trusted @nogc nothrow pure
bool
signbit
(
T
)
(
T x
)
if (
__traits(isScalar, T)
)

Parameters

x T

The value to check

Return Value

Type: bool

true if the value is signed (positive), false otherwise.

Meta