pub fn floor_divide(
left: RuntimeValue,
right: RuntimeValue,
) -> Result<RuntimeValue, String>Expand description
FLOOR division — the runtime of BinaryOpKind::FloorDivide (a // b), the quotient
rounded toward NEGATIVE INFINITY. On exact operands (Int/BigInt/Rational/Decimal) the
result is the exact quotient’s floor as an integer (-7 // 2 → -4, 10^30 // 7 exact);
a Float operand floors the float quotient but stays Float (7.5 // 2 → 3.0, Python
semantics). Distinct from divide, which truncates toward zero. Zero divisor is loud.