If your numbers are integers, just use BigInteger. If it is a floating point number, use double.
Using biginteger