Math.CeilDivExact 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 |
|---|---|
| CeilDivExact(Int32, Int32) |
Returns |
| CeilDivExact(Int64, Int64) |
Returns |
CeilDivExact(Int32, Int32)
Returns x divided by y, rounded toward positive infinity.
[Android.Runtime.Register("ceilDivExact", "(II)I", "", ApiSince=35)]
public static int CeilDivExact(int x, int y);
[<Android.Runtime.Register("ceilDivExact", "(II)I", "", ApiSince=35)>]
static member CeilDivExact : 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 or the result overflows.
Remarks
Throws if y is zero or the result overflows.
Applies to
CeilDivExact(Int64, Int64)
Returns x divided by y, rounded toward positive infinity.
[Android.Runtime.Register("ceilDivExact", "(JJ)J", "", ApiSince=35)]
public static long CeilDivExact(long x, long y);
[<Android.Runtime.Register("ceilDivExact", "(JJ)J", "", ApiSince=35)>]
static member CeilDivExact : 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 or the result overflows.
Remarks
Throws if y is zero or the result overflows.