Yet another MPFR C++ wrapper for High-Precision Calculations
The mpfrcxx is a C++ class designed to facilitate high-precision arithmetic operations using the MPFR library licensed under 2-clause BSD license. MPFR is a C library for multiple-precision floating-point computations with correct rounding. This class provides a convenient C++ wrapper around the MPFR library's functionalities. Features
* licensed under the 2-clause BSD License.
* written from scratch
* Easy-to-use interface for multiple-precision arithmetic.
* Integration with MPFR library's multiple-precision types.
* Exception safety and efficient memory management.
* Support for copy and move semantics.
C++17 or higher.
MPFR library installed on your system.
Clone this repository or download the mpfr_class source files.
Include the mpfr_class in your C++ project and use it to perform high-precision arithmetic operations. Here is a basic example:
To compile a project that uses mpfr_class, link against the MPFR library:
For more detailed documentation, refer to the MPFR library's official documentation.
Contributions to the mpfr_class are welcome. Please submit pull requests or open issues to suggest improvements or report bugs.
This project is licensed under the 2-clause BSD License.