Is there a generally accepted alternative to GMP for arbitrary accuracy?

Looking for a search for the BigInt library, I came across this message: C ++ BigInt Library in Microsoft Windows

The accepted answer mentions the GMP library, but one of the commentators claims that the library does not make mistakes very elegantly and is not suitable for production code. Has anyone done long-term development with this library? Are there any good alternatives? Thanks in advance.

+6
source share
2 answers

Well, since a large project such as GCC uses this to printf and compile time calculations (correct me if I am wrong here), I think it is fairly stable. I think there are ways to limit the memory errors that the commentator is concerned about, but I have not used it personally, so I cannot help you. All I'm saying is a proven stable library. It even has a C ++ interface library.

+3
source

The Tcl implementation uses libtommath for its bigint library, and it is really suitable for production use. (This is a C library, not C ++, but it certainly works.)

+4
source

Source: https://habr.com/ru/post/890231/


All Articles