PyDocs

Nav

Python Runtime Services

float.is_integer

builtins

method of float
  • float.is_integer()
Return True if the float is an integer.
1 Example
>>> (-2.0).is_integer()
True
>>> (3.2).is_integer()
False
from the Python docs
See Also
No see-alsos for builtins/float.is_integer
0 Notes
No notes for float.is_integer