Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

C++ long long.... long numbers

hi.
is it possible in c++ to do operations with very long numbers like 10^10000 without using arbitrary precision arithmetic? maby with some memory access?
python allows to do operations very very long numbers like like 10^10000 , using operators +,-,*,/ but in c++ the max number type is base64 and i must be not usuall operators
(Nov 25, 2010 11:05 AM)g4143 Wrote:  No you have to use 'arbitrary precision arithmetic'...The machine or CPU only understands a limited number of number formats,
the problem i that length of numbers is limited and i need to use very very big numbers, for excample 555!
in python its simple, i use math.factorial(555), but in c++ i cant work with numbers like this
On my compiler long long int go to 10,000,000.
10,000,000 it is not so big number as i need
Could you possibly use some sort of system to convert the numbers into standard index form? I don't know whether that'd be easier or harder though..
I'm interested in this subject as well but I'm yet to find an easy, flexible solution that I'd be satisfied with. I write in pure C, though.
(Nov 25, 2010 12:58 PM)g4143 Wrote:  What could be easier than including a library that some one else wrote and using its functionality?

I'm sorry, I missed out on the library whilst glancing at the thread, I'm looking into it right now.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by cryptobassboostFeb 7, 2019 05:28 PM 4 219 Feb 7, 2019 05:28 PM
Last Post: Caliban
[Python] by EchoeMay 14, 2013 07:50 AM 12 298 May 14, 2013 07:50 AM
Last Post: skadoosh369
[C#] by svavartFeb 4, 2012 10:04 AM 9 324 Feb 4, 2012 10:04 AM
Last Post: Gh0st-Zer0