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

Method __trunc__

crates/vm/src/builtins/float.rs:294–296  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

292
293 #[pymethod]
294 fn __trunc__(&self, vm: &VirtualMachine) -> PyResult<BigInt> {
295 try_to_bigint(self.value, vm)
296 }
297
298 #[pymethod]
299 fn __floor__(&self, vm: &VirtualMachine) -> PyResult<BigInt> {

Callers

nothing calls this directly

Calls 1

try_to_bigintFunction · 0.85

Tested by

no test coverage detected