- divide
Returns the result of dividing p by q, rounding using the specified
RoundingMode.
- checkedMultiply
Returns the product of a and b, provided it does not overflow.
- mod
Returns x mod m. This differs from x % m in that it always returns a
non-negative result.For example
- checkedAdd
Returns the sum of a and b, provided it does not overflow.
- binomial
Returns n choose k, also known as the binomial coefficient of n and k, or
Long#MAX_VALUE if the resu
- isPowerOfTwo
Returns true if x represents a power of two.This differs from Long.bitCount(x)
== 1, because Long.bi
- log2
Returns the base-2 logarithm of x, rounded according to the specified rounding
mode.
- sqrt
Returns the square root of x, rounded with the specified rounding mode.
- gcd
Returns the greatest common divisor of a, b. Returns 0 if a == 0 && b == 0.
- fitsInInt
- log10
Returns the base-10 logarithm of x, rounded according to the specified rounding
mode.
- pow
Returns b to the kth power. Even if the result overflows, it will be equal to
BigInteger.valueOf(b).