Math.DivideExact Method

Definition

Overloads

Name Description
DivideExact(Int32, Int32)

Returns the quotient of x and y.

DivideExact(Int64, Int64)

Returns the quotient of x and y.

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.

Applies to