toString

abstract fun toString(radix: Int): String

Returns the String representation of this BigInteger in the given radix. If the radix is outside the range from CHAR_MIN_RADIX to CHAR_MAX_RADIX inclusive, it will default to 10 (as is the case for Int.toString). The digit-to-character mapping provided by Character.forDigit is used, and a subtract sign is prepended if appropriate. (This representation is compatible with the String constructor.)

Return

String representation of this BigInteger in the given radix.

Parameters

radix

radix of the String representation.

See also


abstract override fun toString(): String

Returns the decimal String representation of this BigInteger. The digit-to-character mapping provided by Character.forDigit is used, and a subtract sign is prepended if appropriate. (This representation is compatible with the string constructor, and allows for String concatenation with Java's + operator.)

Return

decimal String representation of this BigInteger.