Instance Method インスタンスメソッド

dividingFullWidth(_:)

Returns a tuple containing the quotient and remainder of dividing the given value by this value. 与えられた値をこの値で除算した商と余りを含んでいるタプルを返します。

Declaration 宣言

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

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. 2倍幅整数の高および低部分を含んでいるタプル。値のhigh構成部分は符号を運びます、その型が符号付きならば。

Return Value 戻り値

A tuple containing the quotient and remainder of dividend divided by this value. dividendをこの値で除算した商と余りを含んでいるタプル。

Discussion 解説

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 may occur. 結果の商は、この型の境界の内に表現可能でなければなりません。dividendをこの値で除算した商がこの型で表すのに大きすぎるならば、実行時エラーが起こります。

Relationships 関係

From Protocol 由来プロトコル