float vs numeric code example
Example 1: isinstance float or int
#checks if var is float or integer
isinstance(var, (float, int))
Example 2: float'inf value
float('inf')
float('-inf')
#checks if var is float or integer
isinstance(var, (float, int))
float('inf')
float('-inf')