Class BigIntegerMath

java.lang.Object
com.google.common.math.BigIntegerMath

@GwtCompatible(emulated=true) public final class BigIntegerMath extends Object
A class for arithmetic on values of type BigInteger.

The implementations of many methods in this class are based on material from Henry S. Warren, Jr.'s Hacker's Delight, (Addison Wesley, 2002).

Similar functionality for int and for long can be found in IntMath and LongMath respectively.

Since:
11.0
  • Field Details

    • SQRT2_PRECOMPUTE_THRESHOLD

      static final int SQRT2_PRECOMPUTE_THRESHOLD
      See Also:
    • SQRT2_PRECOMPUTED_BITS

      static final BigInteger SQRT2_PRECOMPUTED_BITS
    • LN_10

      private static final double LN_10
    • LN_2

      private static final double LN_2
  • Constructor Details

    • BigIntegerMath

      private BigIntegerMath()
  • Method Details