nimble.match.positive

nimble.match.positive(value)

Determine if a value is greater than zero.

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

Parameters:

value

Returns:

bool

Examples

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