As a starting example I wanted to calculate n! of some integer n.
Unfortunately factorials get very large even for small n. All the variable types are not able to store the solution correctly. What should I do? Store the answer as a string or array and do the multiplications manually somehow?
If I want to use fractions instead of double can I include some header file which allows me do that? It shouldnt be too difficult to write sth that can do the basic operations with fractions but do I always have to write everything? With Math.h header I get some functions for example and I do not need to know how they exactly get their values.
thank you athar, thats what I was looking for, now I have to find out how I get it to work.
mathhead, yes i ment n factorial. yes long long int is a little better.