Calendar.FloorDivide 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
FloorDivide(Int32, Int32) |
Divide two integers, returning the floor of the quotient. |
FloorDivide(Int64, Int64) |
Divide two long integers, returning the floor of the quotient. |
FloorDivide(Int32, Int32, Int32[]) |
Divide two integers, returning the floor of the quotient, and the modulus remainder. |
FloorDivide(Int64, Int32, Int32[]) |
Divide two integers, returning the floor of the quotient, and the modulus remainder. |
FloorDivide(Int32, Int32)
Divide two integers, returning the floor of the quotient.
[Android.Runtime.Register("floorDivide", "(II)I", "", ApiSince=24)]
protected static int FloorDivide (int numerator, int denominator);
[<Android.Runtime.Register("floorDivide", "(II)I", "", ApiSince=24)>]
static member FloorDivide : int * int -> int
Parameters
- numerator
- Int32
the numerator
- denominator
- Int32
a divisor which must be > 0
Returns
the floor of the quotient.
- Attributes
Remarks
Divide two integers, returning the floor of the quotient.
Unlike the built-in division, this is mathematically well-behaved. E.g., -1/4
=> 0 but floorDivide(-1,4)
=> -1.
Java documentation for android.icu.util.Calendar.floorDivide(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
FloorDivide(Int64, Int64)
Divide two long integers, returning the floor of the quotient.
[Android.Runtime.Register("floorDivide", "(JJ)J", "", ApiSince=24)]
protected static long FloorDivide (long numerator, long denominator);
[<Android.Runtime.Register("floorDivide", "(JJ)J", "", ApiSince=24)>]
static member FloorDivide : int64 * int64 -> int64
Parameters
- numerator
- Int64
the numerator
- denominator
- Int64
a divisor which must be > 0
Returns
the floor of the quotient.
- Attributes
Remarks
Divide two long integers, returning the floor of the quotient.
Unlike the built-in division, this is mathematically well-behaved. E.g., -1/4
=> 0 but floorDivide(-1,4)
=> -1.
Java documentation for android.icu.util.Calendar.floorDivide(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
FloorDivide(Int32, Int32, Int32[])
Divide two integers, returning the floor of the quotient, and the modulus remainder.
[Android.Runtime.Register("floorDivide", "(II[I)I", "", ApiSince=24)]
protected static int FloorDivide (int numerator, int denominator, int[]? remainder);
[<Android.Runtime.Register("floorDivide", "(II[I)I", "", ApiSince=24)>]
static member FloorDivide : int * int * int[] -> int
Parameters
- numerator
- Int32
the numerator
- denominator
- Int32
a divisor which must be > 0
- remainder
- Int32[]
an array of at least one element in which the value
numerator mod denominator
is returned. Unlike numerator
% denominator
, this will always be non-negative.
Returns
the floor of the quotient.
- Attributes
Remarks
Divide two integers, returning the floor of the quotient, and the modulus remainder.
Unlike the built-in division, this is mathematically well-behaved. E.g., -1/4
=> 0 and -1%4
=> -1, but floorDivide(-1,4)
=> -1 with remainder[0]
=> 3.
Java documentation for android.icu.util.Calendar.floorDivide(int, 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
FloorDivide(Int64, Int32, Int32[])
Divide two integers, returning the floor of the quotient, and the modulus remainder.
[Android.Runtime.Register("floorDivide", "(JI[I)I", "", ApiSince=24)]
protected static int FloorDivide (long numerator, int denominator, int[]? remainder);
[<Android.Runtime.Register("floorDivide", "(JI[I)I", "", ApiSince=24)>]
static member FloorDivide : int64 * int * int[] -> int
Parameters
- numerator
- Int64
the numerator
- denominator
- Int32
a divisor which must be > 0
- remainder
- Int32[]
an array of at least one element in which the value
numerator mod denominator
is returned. Unlike numerator
% denominator
, this will always be non-negative.
Returns
the floor of the quotient.
- Attributes
Remarks
Divide two integers, returning the floor of the quotient, and the modulus remainder.
Unlike the built-in division, this is mathematically well-behaved. E.g., -1/4
=> 0 and -1%4
=> -1, but floorDivide(-1,4)
=> -1 with remainder[0]
=> 3.
Java documentation for android.icu.util.Calendar.floorDivide(long, 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.