|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.math.Division
class Division
Static library that provides all operations related with division and modular
arithmetic to BigInteger. Some methods are provided in both mutable
and immutable way. There are several variants provided listed below:
BigInteger division and remainder by BigInteger.BigInteger division and remainder by int.BigInteger numbers.BigInteger numbers.BigInteger numbers.
| Constructor Summary | |
|---|---|
Division()
|
|
| Method Summary | |
|---|---|
(package private) static BigInteger[] |
divideAndRemainderByInteger(BigInteger val,
int divisor,
int divisorSign)
Computes the quotient and the remainder after a division by an int
number. |
(package private) static int |
divideArrayByInt(int[] dest,
int[] src,
int srcLength,
int divisor)
Divides an array by an integer value. |
(package private) static long |
divideLongByInt(long a,
int b)
Divides an unsigned long a by an unsigned int b. |
(package private) static int |
remainder(BigInteger dividend,
int divisor)
Divides a BigInteger by a signed int and
returns the remainder. |
(package private) static int |
remainderArrayByInt(int[] src,
int srcLength,
int divisor)
Divides an array by an integer value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Division()
| Method Detail |
|---|
static int divideArrayByInt(int[] dest,
int[] src,
int srcLength,
int divisor)
dest - the quotientsrc - the dividendsrcLength - the length of the dividenddivisor - the divisor
static int remainderArrayByInt(int[] src,
int srcLength,
int divisor)
src - the dividendsrcLength - the length of the dividenddivisor - the divisor
static int remainder(BigInteger dividend,
int divisor)
BigInteger by a signed int and
returns the remainder.
dividend - the BigInteger to be divided. Must be non-negative.divisor - a signed int
static long divideLongByInt(long a,
int b)
a - the dividendb - the divisor
static BigInteger[] divideAndRemainderByInteger(BigInteger val,
int divisor,
int divisorSign)
int
number.
[quotient, remainder].
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||