nimble.match.infinity

nimble.match.infinity(value)

Determine if a value is a float infinity.

Return True if the value is positive or negative infinity float value, otherwise False.

Parameters:

value

Returns:

bool

See also

anyFalse, allFalse

Examples

>>> infinity(float('inf'))
True
>>> infinity(0)
False
>>> infinity('inf')
False