Is there a BigInt large number class in the standard library?

10k views Asked by At

Does the standard library have a BigInt class? (numbers with many digits held in a container)

3

There are 3 answers

7
Mark Ransom On BEST ANSWER

The C++ standard library (sometimes erroneously referred to as "STL") does not contain any extended precision support.

0
Cat Plus Plus On

No, but MPIR/GMP have C++ interfaces.

0
Mathieu Rodic On

Unfortunately, the C++ standard library does not natively support arbitrarily long integers. However, these libraries can help you getting the job done: