in scala
object BigInt

object BigInt
extends java.lang.Object
with ScalaObject
author:
Martin Odersky
version:
1.0, 15/07/2003

Constructor Summary
def this



Def Summary
def apply ( bitlength : scala.Int , certaInty : scala.Int , rnd : java.util.Random ) : BigInt
Constructs a randomly generated positive BigInt that is probably prime, with the specified bitLength.
def apply ( i : scala.Int ) : BigInt
Constructs a BigInt whose value is equal to that of the specified integer value.
def apply ( l : scala.Long ) : BigInt
Constructs a BigInt whose value is equal to that of the specified long value.
def apply ( numbits : scala.Int , rnd : java.util.Random ) : BigInt
Constructs a randomly generated BigInt, uniformly distributed over the range 0 to (2 ^ numBits - 1), inclusive.
def apply ( signum : scala.Int , magnitude : Array ) : BigInt
Translates the sign-magnitude representation of a BigInt into a BigInt.
def apply ( x : java.lang.String ) : BigInt
Translates the decimal String representation of a BigInt into a BigInt.
def apply ( x : java.lang.String , radix : scala.Int ) : BigInt
Translates the String representation of a BigInt in the specified radix into a BigInt.
def apply ( x : Array ) : BigInt
Translates a byte array containing the two's-complement binary representation of a BigInt into a BigInt.
def bigInt2ordered ( x : BigInt ) : Ordered
Implicit conversion from BigInt to Ordered
def int2bigInt ( i : scala.Int ) : BigInt
Implicit conversion from int to BigInt
def long2bigInt ( l : scala.Long ) : BigInt
Implicit copnversion from long to BigInt
def probablePrime ( bitLength : scala.Int , rnd : java.util.Random ) : BigInt
Returns a positive BigInt that is probably prime, with the specified bitLength.


Constructor Detail
def this

Def Detail
def apply ( bitlength : scala.Int , certaInty : scala.Int , rnd : java.util.Random ) : BigInt
Constructs a randomly generated positive BigInt that is probably prime, with the specified bitLength.

def apply ( i : scala.Int ) : BigInt
Constructs a BigInt whose value is equal to that of the specified integer value.

def apply ( l : scala.Long ) : BigInt
Constructs a BigInt whose value is equal to that of the specified long value.

def apply ( numbits : scala.Int , rnd : java.util.Random ) : BigInt
Constructs a randomly generated BigInt, uniformly distributed over the range 0 to (2 ^ numBits - 1), inclusive.

def apply ( signum : scala.Int , magnitude : Array ) : BigInt
Translates the sign-magnitude representation of a BigInt into a BigInt.

def apply ( x : java.lang.String ) : BigInt
Translates the decimal String representation of a BigInt into a BigInt.

def apply ( x : java.lang.String , radix : scala.Int ) : BigInt
Translates the String representation of a BigInt in the specified radix into a BigInt.

def apply ( x : Array ) : BigInt
Translates a byte array containing the two's-complement binary representation of a BigInt into a BigInt.

def bigInt2ordered ( x : BigInt ) : Ordered
Implicit conversion from BigInt to Ordered

def int2bigInt ( i : scala.Int ) : BigInt
Implicit conversion from int to BigInt

def long2bigInt ( l : scala.Long ) : BigInt
Implicit copnversion from long to BigInt

def probablePrime ( bitLength : scala.Int , rnd : java.util.Random ) : BigInt
Returns a positive BigInt that is probably prime, with the specified bitLength.