MCPcopy Create free account
hub / github.com/RustPython/RustPython / inner_divmod

Function inner_divmod

crates/vm/src/builtins/float.rs:153–155  ·  view source on GitHub ↗
(v1: f64, v2: f64, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

151}
152
153fn inner_divmod(v1: f64, v2: f64, vm: &VirtualMachine) -> PyResult<(f64, f64)> {
154 float_ops::divmod(v1, v2).ok_or_else(|| vm.new_zero_division_error("division by zero"))
155}
156
157pub fn float_pow(v1: f64, v2: f64, vm: &VirtualMachine) -> PyResult {
158 if v1.is_zero() && v2.is_sign_negative() {

Callers

nothing calls this directly

Calls 2

ok_or_elseMethod · 0.80
divmodFunction · 0.50

Tested by

no test coverage detected