Math.CeilDiv Method

Definition

Overloads

Name Description
CeilDiv(Int32, Int32)

Returns x divided by y, rounded toward positive infinity.

CeilDiv(Int64, Int32)

Returns x divided by y, rounded toward positive infinity.

CeilDiv(Int64, Int64)

Returns x divided by y, rounded toward positive infinity.

CeilDiv(Int32, Int32)

Returns x divided by y, rounded toward positive infinity.

[Android.Runtime.Register("ceilDiv", "(II)I", "", ApiSince=35)]
public static int CeilDiv(int x, int y);
[<Android.Runtime.Register("ceilDiv", "(II)I", "", ApiSince=35)>]
static member CeilDiv : int * int -> int

Parameters

x
Int32

The dividend.

y
Int32

The divisor.

Returns

The quotient rounded toward positive infinity.

Attributes

Exceptions

if y is zero.

Remarks

When x is Int32.MinValue and y is -1, returns Int32.MinValue due to overflow.

Applies to

CeilDiv(Int64, Int32)

Returns x divided by y, rounded toward positive infinity.

[Android.Runtime.Register("ceilDiv", "(JI)J", "", ApiSince=35)]
public static long CeilDiv(long x, int y);
[<Android.Runtime.Register("ceilDiv", "(JI)J", "", ApiSince=35)>]
static member CeilDiv : int64 * int -> int64

Parameters

x
Int64

The dividend.

y
Int32

The divisor.

Returns

The quotient rounded toward positive infinity.

Attributes

Exceptions

if y is zero.

Remarks

When x is Int64.MinValue and y is -1, returns Int64.MinValue due to overflow.

Applies to

CeilDiv(Int64, Int64)

Returns x divided by y, rounded toward positive infinity.

[Android.Runtime.Register("ceilDiv", "(JJ)J", "", ApiSince=35)]
public static long CeilDiv(long x, long y);
[<Android.Runtime.Register("ceilDiv", "(JJ)J", "", ApiSince=35)>]
static member CeilDiv : int64 * int64 -> int64

Parameters

x
Int64

The dividend.

y
Int64

The divisor.

Returns

The quotient rounded toward positive infinity.

Attributes

Exceptions

if y is zero.

Remarks

When x is Int64.MinValue and y is -1, returns Int64.MinValue due to overflow.

Applies to