Very large numbers

I am trying to write a program that involves writing very large numbers such as calculating factorials of numbers >500 . I tried using "long doubles" because I thought these would allow values of up to 10^4932, but I am getting "1.#INF" . Any ideas on how to handle(arithmetic) of very large numbers under VS2010. Thanks
1.#INF means that the number is too large to store in long double
You need a bignum library, something like GNU GMP http://gmplib.org

Use one of the libraries designed for this sort of thing. I use the GNU bignum library.
Thanks. I googled how to incorporate that library int VS2010, but i got conflicting stories, anyone has used it under VS2010?
Topic archived. No new replies allowed.