is there any way to store extremely large numbers and then perform some mathematics on it? for example a 15 digit number's factorial? unsigned long int stores upto like 10^10 , and I don't want to make my own class for it...
Storing extremely large numbers
Started by ahmed, Nov 26 2009 05:43 PM
4 replies to this topic
#1
Posted 26 November 2009 - 05:43 PM
|
|
|
#3
Posted 26 November 2009 - 11:55 PM
thanks but i don't want to use any library , so please if there's a solution to that do help o_O
#4
Posted 27 November 2009 - 04:03 AM
If you don't want to use a library, it's probably a need to do it on your own yes...
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#5
Posted 27 November 2009 - 06:06 AM
Your options:
1) use a third party library such as GMP
2) write your own.
Personally, I would recommend option 1 if this is not for a class, since there are a lot of tedious details involved that are easy to screw up, and you aren't likely to write a highly optimized library on your first 10 tries.
1) use a third party library such as GMP
2) write your own.
Personally, I would recommend option 1 if this is not for a class, since there are a lot of tedious details involved that are easy to screw up, and you aren't likely to write a highly optimized library on your first 10 tries.


Sign In
Create Account


Back to top









