- divide
Returns the result of dividing p by q, rounding using the specified
RoundingMode.
- isPowerOfTwo
Returns true if x represents a power of two.This differs from
Integer.bitCount(x) == 1, because Inte
- checkedAdd
Returns the sum of a and b, provided it does not overflow.
- 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.
- checkedMultiply
Returns the product of a and b, provided it does not overflow.
- factorial
Returns n!, that is, the product of the first n positive integers, 1 if n == 0,
or Integer#MAX_VALUE
- log10Floor
- pow
Returns b to the kth power. Even if the result overflows, it will be equal to
BigInteger.valueOf(b).
- lessThanBranchFree
Returns 1 if x < y as unsigned integers, and 0 otherwise. Assumes that x - y
fits into a signed int.
- mod
Returns x mod m. This differs from x % m in that it always returns a
non-negative result.For example
- saturatedAdd
Returns the sum of a and b unless it would overflow or underflow in which case
Integer.MAX_VALUE or