signbit

signbit(x)

Returns true if the value of the sign of x is negative, otherwise false.

Examples

julia> signbit(-6)
true
julia> signbit(6)
false

See Also

bitpack, bitunpack, bswap, flipbits!, htol, hton, isbits, ltoh, ntoh, rol, rol!, ror, ror!, signbit,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: