Attributes
- Companion
- class
- Source
- BigInt.scala
- Graph
-
- Supertypes
- Self type
-
BigInt.type
Members list
Value members
Concrete methods
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.
Value parameters
- i
-
the specified integer value
Attributes
- Returns
-
the constructed
BigInt - Source
- BigInt.scala
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.
Value parameters
- l
-
the specified long value
Attributes
- Returns
-
the constructed
BigInt - Source
- BigInt.scala
Translates a byte array containing the two's-complement binary representation of a BigInt into a BigInt.
Translates a byte array containing the two's-complement binary representation of a BigInt into a BigInt.
Value parameters
- x
-
the two's-complement big-endian binary representation of a
BigInt
Attributes
- Source
- BigInt.scala
Translates the sign-magnitude representation of a BigInt into a BigInt.
Translates the sign-magnitude representation of a BigInt into a BigInt.
Value parameters
- magnitude
-
big-endian binary representation of the magnitude of the number.
- signum
-
signum of the number (-1 for negative, 0 for zero, 1 for positive).
Attributes
- Returns
-
the
BigIntwith the specified sign and magnitude - Source
- BigInt.scala
Constructs a randomly generated positive BigInt that is probably prime, with the specified bitLength.
Constructs a randomly generated positive BigInt that is probably prime, with the specified bitLength.
Value parameters
- bitlength
-
the bit length of the generated probable prime
BigInt - certainty
-
a measure of the uncertainty that the caller is willing to tolerate: the probability of primality exceeds
(1 - 1/2 ^ certainty) - rnd
-
the source of randomness used to generate the candidate
Attributes
- Source
- BigInt.scala
Constructs a randomly generated BigInt, uniformly distributed over the range 0 to (2 ^ numBits - 1), inclusive.
Constructs a randomly generated BigInt, uniformly distributed over the range 0 to (2 ^ numBits - 1), inclusive.
Value parameters
- numbits
-
the number of random bits used to generate the
BigInt - rnd
-
the source of randomness used for the generation
Attributes
- Source
- BigInt.scala
Translates the decimal String representation of a BigInt into a BigInt.
Translates the decimal String representation of a BigInt into a BigInt.
Value parameters
- x
-
the decimal string representation of the
BigInt
Attributes
- Source
- BigInt.scala
Translates the string representation of a BigInt in the specified radix into a BigInt.
Translates the string representation of a BigInt in the specified radix into a BigInt.
Value parameters
- radix
-
the radix to use when parsing
x - x
-
the string representation of the
BigIntin the specified radix
Attributes
- Source
- BigInt.scala
Translates a java.math.BigInteger into a BigInt.
Translates a java.math.BigInteger into a BigInt.
Value parameters
- x
-
the
java.math.BigIntegervalue to convert
Attributes
- Source
- BigInt.scala
Returns a positive BigInt that is probably prime, with the specified bitLength.
Returns a positive BigInt that is probably prime, with the specified bitLength.
Value parameters
- bitLength
-
the bit length of the returned probable prime
BigInt - rnd
-
the source of randomness used to generate the candidate
Attributes
- Source
- BigInt.scala
Implicits
Implicits
Implicit conversion from Int to BigInt.
Implicit conversion from Int to BigInt.
Value parameters
- i
-
the
Intvalue to convert
Attributes
- Source
- BigInt.scala
Implicit conversion from java.math.BigInteger to scala.BigInt.
Implicit conversion from java.math.BigInteger to scala.BigInt.
Value parameters
- x
-
the
java.math.BigIntegervalue to convert
Attributes
- Source
- BigInt.scala
Implicit conversion from Long to BigInt.
Implicit conversion from Long to BigInt.
Value parameters
- l
-
the
Longvalue to convert
Attributes
- Source
- BigInt.scala