StrictMath.FloorDivExact 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
FloorDivExact(Int32, Int32) |
Returns the largest (closest to positive infinity)
|
FloorDivExact(Int64, Int64) |
Returns the largest (closest to positive infinity)
|
FloorDivExact(Int32, Int32)
Returns the largest (closest to positive infinity)
int
value that is less than or equal to the algebraic quotient.
[Android.Runtime.Register("floorDivExact", "(II)I", "", ApiSince=35)]
public static int FloorDivExact (int x, int y);
[<Android.Runtime.Register("floorDivExact", "(II)I", "", ApiSince=35)>]
static member FloorDivExact : int * int -> int
Parameters
- x
- Int32
the dividend
- y
- Int32
the divisor
Returns
the largest (closest to positive infinity)
int
value that is less than or equal to the algebraic quotient.
- Attributes
Remarks
Returns the largest (closest to positive infinity) int
value that is less than or equal to the algebraic quotient. This method is identical to #floorDiv(int,int)
except that it throws an ArithmeticException
when the dividend is Integer#MIN_VALUE Integer.MIN_VALUE and the divisor is -1
instead of ignoring the integer overflow and returning Integer.MIN_VALUE
.
The floor modulus method #floorMod(int,int)
is a suitable counterpart both for this method and for the #floorDiv(int,int)
method.
See Math#floorDiv(int, int) Math.floorDiv
for examples and a comparison to the integer division /
operator.
Added in 18.
Java documentation for java.lang.StrictMath.floorDivExact(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
FloorDivExact(Int64, Int64)
Returns the largest (closest to positive infinity)
long
value that is less than or equal to the algebraic quotient.
[Android.Runtime.Register("floorDivExact", "(JJ)J", "", ApiSince=35)]
public static long FloorDivExact (long x, long y);
[<Android.Runtime.Register("floorDivExact", "(JJ)J", "", ApiSince=35)>]
static member FloorDivExact : int64 * int64 -> int64
Parameters
- x
- Int64
the dividend
- y
- Int64
the divisor
Returns
the largest (closest to positive infinity)
long
value that is less than or equal to the algebraic quotient.
- Attributes
Remarks
Returns the largest (closest to positive infinity) long
value that is less than or equal to the algebraic quotient. This method is identical to #floorDiv(long,long)
except that it throws an ArithmeticException
when the dividend is Long#MIN_VALUE Long.MIN_VALUE and the divisor is -1
instead of ignoring the integer overflow and returning Long.MIN_VALUE
.
The floor modulus method #floorMod(long,long)
is a suitable counterpart both for this method and for the #floorDiv(long,long)
method.
For examples, see Math#floorDiv(int, int) Math.floorDiv
.
Added in 18.
Java documentation for java.lang.StrictMath.floorDivExact(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.