Java BigInteger Create toBigInteger(int arg)

Here you can find the source of toBigInteger(int arg)

Description

to Big Integer

License

Open Source License

Declaration

public static BigInteger toBigInteger(int arg) 

Method Source Code

//package com.java2s;
/*/*from  w w w  . j a  v  a2 s.  c om*/
** Copyright 2009-2014 by LivingLogic AG, Bayreuth/Germany
** All Rights Reserved
** See LICENSE for the license
*/

import java.math.BigInteger;

public class Main {
    public static BigInteger toBigInteger(int arg) {
        return new BigInteger(Integer.toString(arg));
    }

    public static BigInteger toBigInteger(long arg) {
        return new BigInteger(Long.toString(arg));
    }
}

Related

  1. toBigInteger(byte[] bytes)
  2. toBigInteger(final byte[] array, final int offset, final int length)
  3. toBigInteger(final byte[] buffer, final int offset, final int length)
  4. toBigInteger(final byte[] bytes)
  5. toBigInteger(final Integer i)
  6. toBigInteger(int[] x, int bitsPerDigit)
  7. toBigInteger(List integerVector)
  8. toBigInteger(long value)
  9. toBigInteger(Object o)