
-----------------------------------
klopyrev
Sun Mar 25, 2007 8:46 pm

Big Numbers
-----------------------------------
Does C++ include a class to handle arbitrary sized integers and floating point numbers similar to the BigInteger and BigDecimal classes of Java? I am looking for a standard class, not one you can find somewhere on the internet.

KL

-----------------------------------
abcdefghijklmnopqrstuvwxy
Sun Mar 25, 2007 10:50 pm

RE:Big Numbers
-----------------------------------
Not a standard class but this will work (since it works I dont know why you'd need a standard class)
http://www.apfloat.org/apfloat/

This'll let you work with ONLY 226 million digits with 256mb of ram lol.

-----------------------------------
klopyrev
Sun Mar 25, 2007 11:20 pm

Re: Big Numbers
-----------------------------------
Well, such a class is not available anywhere. I need one I can use for programming contests.

KL

-----------------------------------
bugzpodder
Mon Mar 26, 2007 12:53 am

RE:Big Numbers
-----------------------------------
lol standard class.  nonexistent.  
use java bigint or code your own.
