다음을 통해 공유


StrictMath.CeilDiv Method

Definition

Overloads

CeilDiv(Int32, Int32)

Returns the smallest (closest to negative infinity) int value that is greater than or equal to the algebraic quotient.

CeilDiv(Int64, Int32)

Returns the smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient.

CeilDiv(Int64, Int64)

Returns the smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient.

CeilDiv(Int32, Int32)

Returns the smallest (closest to negative infinity) int value that is greater than or equal to the algebraic quotient.

[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 smallest (closest to negative infinity) int value that is greater than or equal to the algebraic quotient.

Attributes

Remarks

Returns the smallest (closest to negative infinity) int value that is greater than or equal to the algebraic quotient. There is one special case: if the dividend is Integer#MIN_VALUE Integer.MIN_VALUE and the divisor is -1, then integer overflow occurs and the result is equal to Integer.MIN_VALUE.

See Math#ceilDiv(int, int) Math.ceilDiv for examples and a comparison to the integer division / operator.

Added in 18.

Java documentation for java.lang.StrictMath.ceilDiv(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CeilDiv(Int64, Int32)

Returns the smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient.

[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 smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient.

Attributes

Remarks

Returns the smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient. There is one special case: if the dividend is Long#MIN_VALUE Long.MIN_VALUE and the divisor is -1, then integer overflow occurs and the result is equal to Long.MIN_VALUE.

See Math#ceilDiv(int, int) Math.ceilDiv for examples and a comparison to the integer division / operator.

Added in 18.

Java documentation for java.lang.StrictMath.ceilDiv(long, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CeilDiv(Int64, Int64)

Returns the smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient.

[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 smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient.

Attributes

Remarks

Returns the smallest (closest to negative infinity) long value that is greater than or equal to the algebraic quotient. There is one special case: if the dividend is Long#MIN_VALUE Long.MIN_VALUE and the divisor is -1, then integer overflow occurs and the result is equal to Long.MIN_VALUE.

See Math#ceilDiv(int, int) Math.ceilDiv for examples and a comparison to the integer division / operator.

Added in 18.

Java documentation for java.lang.StrictMath.ceilDiv(long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to