Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if number is integer or float

>>> x = 12
>>> isinstance(x, int)
True
>>> y = 12.0
>>> isinstance(y, float)
True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #number #integer #float
ADD COMMENT
Topic
Name
4+8 =