Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add very large numbers in C++? [duplicate]

How can I add very large numbers in C++?


2 Answers

consider a "bignum" library like: http://gmplib.org/ or http://ttmath.slimaczek.pl/ttmath. take a look at a simple bignum class: http://www.circlemud.org/~jelson/560/

like image 157
Ray Tayek Avatar answered Apr 11 '26 12:04

Ray Tayek


Do a Google on "Bigint C++" This will provide you with a list of arbitrator precision integer arithmetic libraries.

like image 43
Martin York Avatar answered Apr 11 '26 11:04

Martin York



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!