nimble.match.numeric

nimble.match.numeric(value)

Determine if a value is numeric.

Return True if the value is numeric, otherwise False. Numeric values include any value with a python or numpy numeric type.

Parameters:

value

Returns:

bool

Examples

>>> numeric(0)
True
>>> numeric(np.float32(8))
True
>>> numeric(float('nan'))
True
>>> numeric('abc')
False
>>> numeric(None)
False