# digit « biginteger « Java Data Type Q&A

### 1. How to convert an 18 digit numeric string to BigInteger?    stackoverflow.com

Could anyone help me in converting an 18 digit string numeric to BigInteger in java ie;a string `"0x9999999999999999"` should appear as `0x9999999999999999` numeric value.

### 2. storing and using numbers with more than 32 digits in java !    stackoverflow.com

I wanted to ask about , how can I use numbers with more than 32 digits in this code , the code is supposed to multiply two binary numbers with more ...

### 3. Split BigInteger, Count Digits?    stackoverflow.com

Any chance you might be able to think of an efficient way to split a BigInteger in half, i.e. if the number is 12345678, it would be split into 1234? I ...

### 4. Get first 40 digits of a BigInteger    java-forums.org

import java.io.*; import java.util.*; import java.math.BigInteger; public class Main { public static void main(String[] args){ BigInteger temp = BigInteger.valueOf(1); BigInteger temp2 = BigInteger.valueOf(2); BigInteger []ar; ar = new BigInteger; ar = temp; ar = temp2; for (int i = 2; i <= 100005; i++){ BigInteger res = temp.add(temp2); BigInteger temp3 = temp2; temp2 = res; temp = temp3; String str = ...