This is a C++ library which allows for relatively easy implementation of high precision mathematics. This is not designed to be a replacement for other libraries. It was built as a personal challenge, and to see how one of these libraries can be built.
main.cpp- The main file for a simple application showing the basics of how to use the library.APInt.h- For integer mathematicsAPInt.cpp- This has all the functions and other interesting bitsAPfloat.h- This is for floating point math (with decimals)APfloat.cpp- Interesting bits again
Refer to Reference.md file
- Basic arithmetic - Most arithmetic can be done like you would on a normal float, double, or int
- Logic and equality - Allows for comparisons between values like normal
- Creation and initialization
- Setting precision - tradeoff between precision and size/complexity
- Assignment operator that will copy the value and precision to the new variable