Parse decimal string to create BigInteger in Java
Description
The following code shows how to parse decimal string to create BigInteger.
Example
//w w w . java2s .c om
import java.math.BigInteger;
public class Main {
public static void main(String[] argv) throws Exception {
BigInteger bi = new BigInteger("1183728");
System.out.println(bi);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »