MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_integer

Method is_integer

crates/vm/src/builtins/float.rs:354–356  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

352
353 #[pymethod]
354 fn is_integer(&self) -> bool {
355 crate::literal::float::is_integer(self.value)
356 }
357
358 #[pymethod]
359 fn as_integer_ratio(&self, vm: &VirtualMachine) -> PyResult<(PyIntRef, PyIntRef)> {

Callers

nothing calls this directly

Calls 1

is_integerFunction · 0.85

Tested by

no test coverage detected