UInt16.DivRem(UInt16, UInt16) Metod

Definition

Beräknar kvoten och resten av två värden.

public:
 static ValueTuple<System::UInt16, System::UInt16> DivRem(System::UInt16 left, System::UInt16 right) = System::Numerics::IBinaryInteger<System::UInt16>::DivRem;
public static(ushort Quotient, ushort Remainder) DivRem(ushort left, ushort right);
static member DivRem : uint16 * uint16 -> ValueTuple<uint16, uint16>
Public Shared Function DivRem (left As UShort, right As UShort) As ValueTuple(Of UShort, UShort)

Parametrar

left
UInt16

Värdet som right delas.

right
UInt16

Värdet som delar left.

Returer

Kvoten och resten av left dividerat med right.

Implementeringar

Undantag

right är noll.

Gäller för