Java BigInteger to toString(BigInteger bi)

Here you can find the source of toString(BigInteger bi)

Description

Converte de BigInteger para String

License

Open Source License

Parameter

Parameter Description
bi -> BigInteger

Return

string

Declaration

public static String toString(BigInteger bi) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.math.BigInteger;

public class Main {
    /**//from ww  w .  ja  va2 s . co  m
     * Converte de array de byte para string
     * @param data -> array de byte
     * @return string
     */
    public static String toString(byte[] data) {
        return toString(new BigInteger(1, data));
    }

    /**
     * Converte de BigInteger para String
     * @param bi -> BigInteger
     * @return string
     */
    public static String toString(BigInteger bi) {
        return bi.toString(16);
    }
}

Related

  1. toMinimalByteArray(BigInteger value)
  2. toObject(BigInteger x)
  3. toPaddedBytes(BigInteger bi, int length)
  4. toPushbackReader(BigInteger x)
  5. toStr(BigInteger number)
  6. toString(BigInteger[] vector)
  7. toUnsigned(final BigInteger[] ulong)
  8. toUnsignedBigInteger(long i)
  9. toUnsignedBigInteger(long number)