float.is_integer()
Return True
if the float instance is finite with integral value, and False
otherwise:
1 2 3 4 | >>> (-2.0).is_integer() True >>> (3.2).is_integer() False |
float.is_integer()
Return True
if the float instance is finite with integral value, and False
otherwise:
1 2 3 4 | >>> (-2.0).is_integer() True >>> (3.2).is_integer() False |
Designed by : w10schools
service@w10schools.com
Please login to continue.