BigInteger.toString

Returns the string representation of this BigInteger in the given radix. If the radix is outside the range from {@link Character#MIN_RADIX} to {@link Character#MAX_RADIX} inclusive, it will default to 10 (as is the case for {@code Integer.toString}). The digit-to-character mapping provided by {@code Char.forDigit} is used, and a minus sign is prepended if appropriate. (This representation is compatible with the {@link #BigInteger(string, int) (string, int)} constructor.)

@param radix radix of the string representation. @return string representation of this BigInteger in the given radix. @see Integer#toString @see Character#forDigit @see #BigInteger(java.lang.string, int)

  1. string toString(int radix)
    class BigInteger
    string
    toString
    (
    int radix
    )
  2. string toString()

Meta