Java BigInteger to bigIntToHex(BigInteger big)

Here you can find the source of bigIntToHex(BigInteger big)

Description

big Int To Hex

License

Apache License

Declaration

public static String bigIntToHex(BigInteger big) 

Method Source Code

//package com.java2s;
/*//from w w  w .  ja  va2  s . c om
 * Copyright (C) 2010-2101 Alibaba Group Holding Limited.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import java.math.BigInteger;

public class Main {
    public static String bigIntToHex(BigInteger big) {
        return big.toString(16);
    }
}

Related

  1. bigIntegerToList(BigInteger number)
  2. bigIntegerToString(final BigInteger value)
  3. bigIntegerToUnsignedByteArray(BigInteger a, int len)
  4. bigIntToArray(BigInteger data)
  5. bigIntToHash(BigInteger keyValue)
  6. bigIntToIpV6(BigInteger argInt)
  7. BigIntToPaddedByteArray(BigInteger bi, int length)
  8. bigIntToSortableBytes(BigInteger bigInt, int bigIntSize, byte[] result, int offset)
  9. biToHex(BigInteger bi)