Method of Handling Factorials of Any Size

by Hai Yi

Method uses linked list to capture each digit of factorial result thereby not limiting you to C/C++ types.


We know that the data type, whatever it is, has a minimum and maximum value. But sometimes we need to process a very large number such as the factorial of 1000. It's hard to find any data type to store it.


This article was originally published on Sunday Sep 24th 2000
Mobile Site | Full Site