Companion

object Companion

Functions

of
Link copied to clipboard
common
fun of(value: Int): BigInteger
fun of(value: String): BigInteger
fun of(value: String, radix: Int): BigInteger
fun of(val: IntArray): BigInteger
Returns a BigInteger with the given two's complement representation.
fun of(val: Long): BigInteger
Returns a BigInteger whose value is equal to that of the specified long.
probablePrime
Link copied to clipboard
common
fun probablePrime(bitLength: Int, rnd: Random): BigInteger
Returns a positive BigInteger that is probably prime, with the specified bitLength.

Properties

LONG_MASK
Link copied to clipboard
common
const val LONG_MASK: Long = 0xffffffffL
This mask is used to obtain the value of an int as if it were unsigned.
NEGATIVE_ONE
Link copied to clipboard
common
val NEGATIVE_ONE: BigInteger
The BigInteger constant -1.
ONE
Link copied to clipboard
common
val ONE: BigInteger
The BigInteger constant one.
TEN
Link copied to clipboard
common
val TEN: BigInteger
The BigInteger constant ten.
TWO
Link copied to clipboard
common
val TWO: BigInteger
The BigInteger constant two.
ZERO
Link copied to clipboard
common
val ZERO: BigInteger
The BigInteger constant zero.