Mojo function
divmod
divmod[T: DivModable](numerator: T, denominator: T) -> Tuple[T, T]
Performs division and returns the quotient and the remainder.
Parameters:
- T (
DivModable
): A type conforming to theDivModable
trait.
Args:
- numerator (
T
): The dividend. - denominator (
T
): The divisor.
Returns:
Tuple
: A Tuple
containing the quotient and the remainder.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!