scala.math

# BigInt

#### object BigInt extends Serializable

Version

  1.0, 15/07/2003

Since

  2.1

Linear Supertypes
Serializable, java.io.Serializable, AnyRef, Any
Ordering

1. Alphabetic
2. By inheritance

Inherited

1. BigInt
2. Serializable
3. Serializable
4. AnyRef
5. Any

1. Hide All
2. Show all

Learn more about member selection
Visibility

1. Public
2. All

### Value Members

1. #### final def !=(arg0: Any): Boolean

   Definition Classes
     AnyRef → Any

2. #### final def ##(): Int

   Definition Classes
     AnyRef → Any

3. #### final def ==(arg0: Any): Boolean

   Definition Classes
     AnyRef → Any

4. #### def apply(x: BigInteger): BigInt

   Translates a `java.math.BigInteger` into a BigInt.

5. #### def apply(x: String, radix: Int): BigInt

   Translates the string representation of a `BigInt` in the specified `radix` into a BigInt.

6. #### def apply(x: String): BigInt

   Translates the decimal String representation of a BigInt into a BigInt.

7. #### def apply(numbits: Int, rnd: Random): BigInt

   Constructs a randomly generated BigInt, uniformly distributed over the range `0` to `(2 ^ numBits - 1)`, inclusive.``

8. #### def apply(bitlength: Int, certainty: Int, rnd: Random): BigInt

   Constructs a randomly generated positive BigInt that is probably prime, with the specified bitLength.

9. #### def apply(signum: Int, magnitude: Array[Byte]): BigInt

   Translates the sign-magnitude representation of a BigInt into a BigInt.

10. #### def apply(x: Array[Byte]): BigInt

    Translates a byte array containing the two's-complement binary representation of a BigInt into a BigInt.

11. #### def apply(l: Long): BigInt

    Constructs a `BigInt` whose value is equal to that of the specified long value.

    Constructs a `BigInt` whose value is equal to that of the specified long value.

    l

      the specified long value

    returns

      the constructed `BigInt`

12. #### def apply(i: Int): BigInt

    Constructs a `BigInt` whose value is equal to that of the specified integer value.

    Constructs a `BigInt` whose value is equal to that of the specified integer value.

    i

      the specified integer value

    returns

      the constructed `BigInt`

13. #### final def asInstanceOf[T0]: T0

    Definition Classes
      Any

14. #### def clone(): AnyRef

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

15. #### final def eq(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

16. #### def equals(arg0: Any): Boolean

    Definition Classes
      AnyRef → Any

17. #### def finalize(): Unit

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )

18. #### final def getClass(): Class[_]

    Definition Classes
      AnyRef → Any

19. #### def hashCode(): Int

    Definition Classes
      AnyRef → Any

20. #### implicit def int2bigInt(i: Int): BigInt

    Implicit conversion from `Int` to `BigInt`.

21. #### final def isInstanceOf[T0]: Boolean

    Definition Classes
      Any

22. #### implicit def javaBigInteger2bigInt(x: BigInteger): BigInt

    Implicit conversion from `java.math.BigInteger` to `scala.BigInt`.

23. #### implicit def long2bigInt(l: Long): BigInt

    Implicit conversion from `Long` to `BigInt`.

24. #### final def ne(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

25. #### final def notify(): Unit

    Definition Classes
      AnyRef

26. #### final def notifyAll(): Unit

    Definition Classes
      AnyRef

27. #### def probablePrime(bitLength: Int, rnd: Random): BigInt

    Returns a positive BigInt that is probably prime, with the specified bitLength.

28. #### final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
      AnyRef

29. #### def toString(): String

    Definition Classes
      AnyRef → Any

30. #### final def wait(): Unit

    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

31. #### final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

32. #### final def wait(arg0: Long): Unit

    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

### Inherited from Serializable

### Inherited from java.io.Serializable

### Inherited from AnyRef

### Inherited from Any

### Ungrouped