Math.UnsignedMultiplyExact Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| UnsignedMultiplyExact(Int32, Int32) |
Computes the exact unsigned 32-bit product, with an overflow check. |
| UnsignedMultiplyExact(Int64, Int32) |
Computes the exact unsigned 64-bit product, with an overflow check. |
| UnsignedMultiplyExact(Int64, Int64) |
Computes the exact unsigned 64-bit product, with an overflow check. |
UnsignedMultiplyExact(Int32, Int32)
Computes the exact unsigned 32-bit product, with an overflow check.
[Android.Runtime.Register("unsignedMultiplyExact", "(II)I", "", ApiSince=37)]
public static int UnsignedMultiplyExact(int x, int y);
[<Android.Runtime.Register("unsignedMultiplyExact", "(II)I", "", ApiSince=37)>]
static member UnsignedMultiplyExact : int * int -> int
Parameters
- x
- Int32
The first factor, interpreted as an unsigned integer.
- y
- Int32
The second factor, interpreted as an unsigned integer.
Returns
The product, represented by the result's bit pattern.
- Attributes
Remarks
Each argument is interpreted as an unsigned value with its declared bit width. The result uses the same bit pattern in the signed return type. An ArithmeticException is thrown if the product is outside 0 through 4294967295.
Applies to
UnsignedMultiplyExact(Int64, Int32)
Computes the exact unsigned 64-bit product, with an overflow check.
[Android.Runtime.Register("unsignedMultiplyExact", "(JI)J", "", ApiSince=37)]
public static long UnsignedMultiplyExact(long x, int y);
[<Android.Runtime.Register("unsignedMultiplyExact", "(JI)J", "", ApiSince=37)>]
static member UnsignedMultiplyExact : int64 * int -> int64
Parameters
- x
- Int64
The first factor, interpreted as an unsigned integer.
- y
- Int32
The second factor, interpreted as an unsigned integer.
Returns
The product, represented by the result's bit pattern.
- Attributes
Remarks
Each argument is interpreted as an unsigned value with its declared bit width. The result uses the same bit pattern in the signed return type. An ArithmeticException is thrown if the product is outside 0 through 18446744073709551615.
Applies to
UnsignedMultiplyExact(Int64, Int64)
Computes the exact unsigned 64-bit product, with an overflow check.
[Android.Runtime.Register("unsignedMultiplyExact", "(JJ)J", "", ApiSince=37)]
public static long UnsignedMultiplyExact(long x, long y);
[<Android.Runtime.Register("unsignedMultiplyExact", "(JJ)J", "", ApiSince=37)>]
static member UnsignedMultiplyExact : int64 * int64 -> int64
Parameters
- x
- Int64
The first factor, interpreted as an unsigned integer.
- y
- Int64
The second factor, interpreted as an unsigned integer.
Returns
The product, represented by the result's bit pattern.
- Attributes
Remarks
Each argument is interpreted as an unsigned value with its declared bit width. The result uses the same bit pattern in the signed return type. An ArithmeticException is thrown if the product is outside 0 through 18446744073709551615.