Answers for "java integer number to big"

3

java int to biginteger

// Primitive int
int myInt = 10
BigInteger bigInt = BigInteger.valueOf(myInt);
// Integer object
Integer integer = Integer.valueOf(myInt);
BigInteger bigInt = BigInteger.valueOf(myInteger.intValue());
bigInt = BigInteger.valueOf(myInteger);		// works too
Posted by: Guest on February-13-2021
-1

big integer java

import java.math.BigInteger;
BigInteger f = new BigInteger("1");
Posted by: Guest on June-14-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language