I'm trying to use BigInteger
values along side Math.Log10
method.
final BigInteger answerNo = fact;
final int digits = 1 + (int)Math.floor(Math.log10(answerNo));
Unfortunately the compiler says incompatible types.
If I change the int
s to BigInteger
s it still doesn't like it.