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