nimble.match.zero

nimble.match.zero(value)

Determine if a value is equal to zero.

Return True if the value is zero, otherwise False. Zero values include any numeric value equal to zero.

Parameters:

value

Returns:

bool

See also

anyZero, allZero

Examples

>>> zero(0)
True
>>> zero(0.0)
True
>>> zero(1)
False
>>> zero('0')
False