Companion

object Companion

Properties

Link copied to clipboard

The BigInteger constant -1. (Not exported.)

Link copied to clipboard

The BigInteger constant one.

Link copied to clipboard

The BigInteger constant ten.

Link copied to clipboard

The BigInteger constant two.

Link copied to clipboard

The BigInteger constant zero.

Functions

Link copied to clipboard
fun of(value: Int): BigInteger
fun of(value: String, radix: Int): BigInteger
fun of(signum: Int, magnitude: ByteArray, off: Int, len: Int): BigInteger

Returns a BigInteger with the given two's complement representation. Assumes that the input array will not be modified (the returned BigInteger will reference the input array if feasible).

Returns a BigInteger whose value is equal to that of the specified long.

Link copied to clipboard

Returns a positive BigInteger that is probably prime, with the specified bitLength. The probability that a BigInteger returned by this method is composite does not exceed 2-100.