#How does python determine whether it is a floating point number? The specific method is as follows:
isinstance() function
can be used to determine the type of a variable. It returns a Boolean value, False or True.
Like int, float, etc. are all basic variable types. In fact, classes are also a type of variables.
i=9,j=1.3 >>isinstance(i,float) >>False >>isinstance(j,float) >>True
The above is the detailed content of How to determine whether python is a floating point number. For more information, please follow other related articles on the PHP Chinese website!