Scala Library
|
|
scala/BigInt.scala
]
object
BigInt
extends
AnyRefMethod Summary | |
def
|
apply
(x : Array[Byte]) : BigInt
Translates a byte array containing the two's-complement binary
representation of a BigInt into a BigInt.
|
def
|
apply
(x : java.lang.String, radix : Int) : BigInt
Translates the string representation of a BigInt in the
specified
radix into a BigInt. |
def
|
apply
(x : java.lang.String) : BigInt
Translates the decimal String representation of a BigInt into a BigInt.
|
def
|
apply
(signum : Int, magnitude : Array[Byte]) : BigInt
Translates the sign-magnitude representation of a BigInt into a BigInt.
|
def
|
apply
(l : Long) : BigInt
Constructs a
BigInt whose value is equal to that of the
specified long value. |
def
|
apply
(bitlength : Int, certaInty : Int, rnd : Random) : BigInt
Constructs a randomly generated positive BigInt that is probably prime,
with the specified bitLength.
|
def
|
apply
(i : Int) : BigInt
Constructs a
BigInt whose value is equal to that of the
specified integer value. |
def
|
apply
(numbits : Int, rnd : Random) : BigInt
Constructs a randomly generated BigInt, uniformly distributed over the
range 0 to (2 ^ numBits - 1), inclusive.
|
implicit def
|
bigInt2ordered
(x : BigInt) : Ordered[BigInt]
Implicit conversion from BigInt to
Ordered . |
implicit def
|
int2bigInt
(i : Int) : BigInt
Implicit conversion from
int to BigInt . |
implicit def
|
long2bigInt
(l : Long) : BigInt
Implicit copnversion from long to BigInt
|
def
|
probablePrime
(bitLength : Int, rnd : Random) : BigInt
Returns a positive BigInt that is probably prime, with the specified bitLength.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
BigInt
whose value is equal to that of the
specified integer value.i -
the specified integer valueBigInt
BigInt
whose value is equal to that of the
specified long value.l -
the specified long valueBigInt
numbits -
...rnd -
...
def
apply(x : java.lang.String) : BigInt
def
apply(x : java.lang.String, radix : Int) : BigInt
radix
into a BigInt.x -
...radix -
...int
to BigInt
.Ordered
.
Scala Library
|
|