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 best solutions below

7
On BEST ANSWER

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

0
On

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

0
On

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