Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Big Numbers
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
klopyrev




PostPosted: Sun Mar 25, 2007 8:46 pm   Post subject: 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
Sponsor
Sponsor
Sponsor
sponsor
abcdefghijklmnopqrstuvwxy




PostPosted: Sun Mar 25, 2007 10:50 pm   Post subject: 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




PostPosted: Sun Mar 25, 2007 11:20 pm   Post subject: Re: Big Numbers

Well, such a class is not available anywhere. I need one I can use for programming contests.

KL
bugzpodder




PostPosted: Mon Mar 26, 2007 12:53 am   Post subject: RE:Big Numbers

lol standard class. nonexistent.
use java bigint or code your own.
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: