SlackBuilds Repository

The bigfloat module is a Python wrapper for the MPFR library for arbitraryprecision floating-point reliable arithmetic.

The MPFR library is a well-known portable C library for arbitrary-precisionarithmetic on floating-point numbers. It provides precise control overprecisions and rounding modes and gives correctly-rounded reproducibleplatform-independent results.

The bigfloat module aims to provide a convenient and friendly Pythoninterface to the operations and functions provided by the MPFR library. Themain class, BigFloat, gives an immutable multiple-precision floating-pointtype that can be freely mixed with Python integers and floats. The Contextclass, when used in conjunction with Pythons with statement, gives a simpleway of controlling precisions and rounding modes. Additional module-levelfunctions provide various standard mathematical operations. There is fullsupport for IEEE 754 signed zeros, nans, infinities and subnormals.