Can any one help me to know how to deal with big numbers, like to count the number of digits in factorial of 5*10^9.

or how to make number 20,000 decimal.

array can store only to 10^6, if heap is taken the size could extend up to 10^9.How to deal with numbers having more than that size.

eagerly waiting for reply.