Packages

object BigInt extends Serializable

Source
BigInt.scala
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
Visibility
  1. Public
  2. All

Value Members

  1. def apply(x: BigInteger): BigInt

    Translates a java.math.BigInteger into a BigInt.

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

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

  3. def apply(x: String): BigInt

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

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

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

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

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

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

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

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

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

  8. 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

  9. 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

  10. implicit def int2bigInt(i: Int): BigInt

    Implicit conversion from Int to BigInt.

  11. implicit def javaBigInteger2bigInt(x: BigInteger): BigInt

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

  12. implicit def long2bigInt(l: Long): BigInt

    Implicit conversion from Long to BigInt.

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

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