Math.DivideExact 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 |
|---|---|
| DivideExact(Int32, Int32) |
Returns the quotient of |
| DivideExact(Int64, Int64) |
Returns the quotient of |
DivideExact(Int32, Int32)
Returns the quotient of x and y.
[Android.Runtime.Register("divideExact", "(II)I", "", ApiSince=35)]
public static int DivideExact(int x, int y);
[<Android.Runtime.Register("divideExact", "(II)I", "", ApiSince=35)>]
static member DivideExact : int * int -> int
Parameters
- x
- Int32
The dividend.
- y
- Int32
The divisor.
Returns
The quotient of x and y.
- Attributes
Exceptions
if y is zero or the result overflows.
Remarks
Throws if y is zero or the result overflows.
Applies to
DivideExact(Int64, Int64)
Returns the quotient of x and y.
[Android.Runtime.Register("divideExact", "(JJ)J", "", ApiSince=35)]
public static long DivideExact(long x, long y);
[<Android.Runtime.Register("divideExact", "(JJ)J", "", ApiSince=35)>]
static member DivideExact : int64 * int64 -> int64
Parameters
- x
- Int64
The dividend.
- y
- Int64
The divisor.
Returns
The quotient of x and y.
- Attributes
Exceptions
if y is zero or the result overflows.
Remarks
Throws if y is zero or the result overflows.