Go to file
2019-10-31 17:49:25 +00:00
.circleci correct circle-ci script. 2019-08-26 14:59:38 +01:00
config Fix most, but not yet all the gcc-9 failures. 2019-09-07 19:55:47 +01:00
doc Document changes for 1.72 release, rebuild docs. 2019-10-21 10:50:36 +01:00
example Editorial changes, part 1. 2019-09-19 15:44:34 +01:00
include/boost/multiprecision More waring fixes for gcc and clang 2019-10-24 21:39:52 +01:00
meta Add metadata file. 2014-08-18 15:07:58 +01:00
performance Merge branch 'develop' into constexpr2 2019-08-26 12:53:53 +01:00
test Merge branch 'develop' of https://github.com/boostorg/multiprecision into develop 2019-10-29 19:01:14 +00:00
tools Initial merge of cpp_bin_float code from sandbox. 2013-11-21 19:05:42 +00:00
.clang-format clang-format: apply new format to (almost) everything. 2019-07-15 18:25:17 +01:00
.gitattributes Move top-level boost directory over to "devel" (temporarily) 2007-07-31 20:32:15 +00:00
.travis.yml Travis: Try again with clang-9 configuration. 2019-09-23 21:14:11 +01:00
appveyor.yml constexpr: Tweak C++14 detection to eliminate early clang versions. 2019-08-26 12:53:15 +01:00
index.html Tweak docs and regenerate. 2012-11-26 16:59:39 +00:00
README.md Add readme. 2018-10-14 18:51:16 +01:00

Boost Multiprecision Library

The Multiprecision Library provides integer, rational, floating-point, complex and interval number types in C++ that have more range and precision than C++'s ordinary built-in types. The big number types in Multiprecision can be used with a wide selection of basic mathematical operations, elementary transcendental functions as well as the functions in Boost.Math. The Multiprecision types can also interoperate with the built-in types in C++ using clearly defined conversion rules. This allows Boost.Multiprecision to be used for all kinds of mathematical calculations involving integer, rational and floating-point types requiring extended range and precision.

Multiprecision consists of a generic interface to the mathematics of large numbers as well as a selection of big number back ends, with support for integer, rational and floating-point types. Boost.Multiprecision provides a selection of back ends provided off-the-rack in including interfaces to GMP, MPFR, MPIR, TomMath as well as its own collection of Boost-licensed, header-only back ends for integers, rationals, floats and complex. In addition, user-defined back ends can be created and used with the interface of Multiprecision , provided the class implementation adheres to the necessary concepts.

Depending upon the number type, precision may be arbitrarily large (limited only by available memory), fixed at compile time (for example 50 or 100 decimal digits), or a variable controlled at run-time by member functions. The types are expression-template-enabled for better performance than naive user-defined types.

The full documentation is available on boost.org.

Support, bugs and feature requests

Bugs and feature requests can be reported through the Gitub issue tracker (see open issues and closed issues).

You can submit your changes through a pull request.

There is no mailing-list specific to Boost Multiprecision, although you can use the general-purpose Boost mailing-list using the tag [multiprecision].

Development

Clone the whole boost project, which includes the individual Boost projects as submodules (see boost+git doc):

git clone https://github.com/boostorg/boost
cd boost
git submodule update --init

The Boost Multiprecision Library is located in libs/multiprecision/.

Running tests

First, make sure you are in libs/multiprecision/test. You can either run all the tests listed in Jamfile.v2 or run a single test:

../../../b2                        <- run all tests
../../../b2 test_complex           <- single test