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 theDivModabletrait.
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!
