nimble.match.negative

nimble.match.negative(value)

Determine if a value is less than zero.

Return True if the value is a numeric value less than zero, otherwise False.

Parameters:

value

Returns:

bool

Examples

>>> negative(-1)
True
>>> negative(-3.333)
True
>>> negative(1)
False
>>> negative(0)
False