That is a mathematics question and explanation is lengthy. It is mostly used in numerical series. Best thing is to go to a mathematics site and search in it. Here is a sample
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
factorials get BIG really fast and exceed the limits of 32-bit unsigned integer variables by 13!.
If you want to play with them use a datatype that can handle huge numbers, or switch to an extended precision mathematics library like GMP.
Or use Ruby or Python that do not have these narrow limits.
bumsfeld
Nearly a Posting Virtuoso
1,445 posts since Jul 2005
Reputation Points: 404
Solved Threads: 184
>Or use Ruby or Python that do not have these narrow limits.
The only difference being that the arbitrary precision types are built into the language instead of offered as a library. I always enjoy when someone goes into a random thread and suggests that people use their favorite languages for no good reason.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401