Click here to Skip to main content
15,886,806 members
Articles / Programming Languages / C++

Arbitrary Precision - Easy-to-use C++ Library for Long Integer Arithmetic

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
13 Dec 2021MIT7 min read 12.4K   8  
Introduction of a newly developed solution for integer arithmetic
Currently, there are a lot of libraries that offer arbitrary precision arithmetic types (be it integer or float) with a complete interface, high performance, and reliability (GNU MP, Boost.Multiprecision, Crypto C++). However, adding them as a dependency to your project is not a single-step task. Small standalone libraries do exist, but they usually have certain flaws: the base is a power of 10, it is necessary to compile sources (.cpp), they are not reliably tested, and so on. This article introduces a new library, called Arbitrary Precision, which offers a reliable, flexible, and relatively fast long integer class.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer GlobalLogic
Ukraine Ukraine
Bachelor of Computer Science, Ivan Franko National University of Lviv, Ukraine.

Primary specializations: C++, OOP, Data Structures and Algorithms.
Secondary specializations: C, Linux, AOSP, Hardware Virtualization.

Comments and Discussions