math « biginteger « Java Data Type Q&A

1. Problems with java.math.BigInteger

I have the following code at the head of a method:

BigInteger foo = BigInteger.valueOf(0);
BigInteger triNum = BigInteger.valueOf(0);

//set min value to 1*2*3*4*5*...*199*200.
BigInteger min = BigInteger.ONE;
BigInteger temp = BigInteger.ZERO;
for(int i=1; i<=200; i++)

2. Regarding java.math.BigInteger

The problem im facing with BigInteger when i try computing a string like "7+3" and then storing the result in a BigInteger variable, it throws a NumberFormat exception. Any pointers on ...

3. How to add two numbers of any length in java?

How to add two numbers of any length in java? Say for example, in java long size is 64 bit. So the maximum range is -9223372036854775808 to 9223372036854775807. Am i right? So ...

4. Is there a way using BigInteger for iteration?

Does BigInteger only have equals for comparison?
Are there substitutes for math notation like < (greater than) or < (less than)? ^Answered! now i want to know, is there a way using BigInteger in ...

5. Using logarithm instead of division for large numbers?

I couldn't really come up with a proper title for my question but allow me to present my case; I want to calculate a significance ratio in the form: p ...

6. BigInteger math

I know how to take a primitive value to a decimal exponent, but how do you do this to a BigInteger too large to be cast to a primitive type? Is there a way to find square or cube roots of a BigInteger? The only other thing I need, but can't find is how to take find the log of a ...