BigInt (original) (raw)
scala.math.BigInt
See theBigInt companion class
Members list
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
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
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.
Attributes
Source
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
Source
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.
Attributes
Source
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. `
Attributes
Source
Translates the decimal String representation of a BigInt into a BigInt.
Translates the decimal String representation of a BigInt into a BigInt.
Attributes
Source
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.
Attributes
Source
Translates a java.math.BigInteger
into a BigInt.
Translates a java.math.BigInteger
into a BigInt.
Attributes
Source
Returns a positive BigInt that is probably prime, with the specified bitLength.
Returns a positive BigInt that is probably prime, with the specified bitLength.
Attributes
Source
Implicit conversion from Int
to BigInt
.
Implicit conversion from Int
to BigInt
.
Attributes
Source
Implicit conversion from java.math.BigInteger
to scala.BigInt
.
Implicit conversion from java.math.BigInteger
to scala.BigInt
.
Attributes
Source
Implicit conversion from Long
to BigInt
.
Implicit conversion from Long
to BigInt
.
Attributes
Source
In this article