Java BigInteger Create toBigInteger(long value)

Here you can find the source of toBigInteger(long value)

Description

to Big Integer

License

Open Source License

Parameter

Parameter Description
value a parameter

Declaration

public static BigInteger toBigInteger(long value) 

Method Source Code


//package com.java2s;
import java.math.BigInteger;

public class Main {
    /**/*from  w  w  w  .ja  va  2 s  .c  om*/
     * @param value
     * @return
     */
    public static BigInteger toBigInteger(long value) {
        return new BigInteger(String.valueOf(value));
    }

    public static BigInteger toBigInteger(Integer integer) {
        if (integer == null)
            return null;
        return new BigInteger(integer.toString());
    }
}

Related

  1. toBigInteger(final byte[] bytes)
  2. toBigInteger(final Integer i)
  3. toBigInteger(int arg)
  4. toBigInteger(int[] x, int bitsPerDigit)
  5. toBigInteger(List integerVector)
  6. toBigInteger(Object o)
  7. toBigInteger(Object value)
  8. toBigInteger(UUID uuid)