Instance Methodswift 6.0.1Swift

    dividingFullWidth(_:)

    Returns a tuple containing the quotient and remainder of dividing the given value by this value.

    func dividingFullWidth(_ dividend: (high: UInt, low: UInt.Magnitude)) -> (quotient: UInt, remainder: UInt)

    Parameters

    dividend

    A tuple containing the high and low parts of a double-width integer. The high component of the value carries the sign, if the type is signed.

    Returns

    A tuple containing the quotient and remainder of dividend divided by this value.

    The resulting quotient must be representable within the bounds of the type. If the quotient of dividing dividend by this value is too large to represent in the type, a runtime error will occur.

    Other members in extension

    Types

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces