scala.math

BigInt

object BigInt extends AnyRef

Inherits

  1. AnyRef
  2. Any

Value Members

  1. val MaxLong: BigInt

  2. val MinLong: BigInt

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

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

  4. def apply(x: String): BigInt

    Translates the decimal String representation of a BigInt into a BigInt

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

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

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

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

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

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

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

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

  9. def apply(l: Long): BigInt

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

  10. def apply(i: Int): BigInt

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

  11. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  12. def hashCode(): Int

    Returns a hash code value for the object

  13. def int2bigInt(i: Int): BigInt

    Implicit conversion from int to BigInt

  14. def long2bigInt(l: Long): BigInt

    Implicit copnversion from long to BigInt

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

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

  16. def toString(): String

    Returns a string representation of the object