Crate gmp_mpfr [−] [src]
The gmp_mpfr
crate uses the
GNU Multiple Precision Arithmetic Library,
(GMP), for integer and rational numbers.
The GNU MPFR Library, a library for
multiple-precision floating-point computations, is used for
floating-point numbers.
To understand the exact operation of the functions in this crate, you can see the online documentation available at the GMP and MPFR pages.
Just like GMP and MPFR, this crate is free software: you can redistribute it and/or modify it under the terms of either
the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version, or
the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Structs
Exp |
The type of the exponent of a |
Float |
A multi-precision floating-point number. |
Integer |
An arbitrary-precision integer. |
Prec |
The type of the precision of a |
Rational |
An arbitrary-precision rational number. |
Enums
Constant |
The available floating-point constants. |
Round |
The rounding methods for floatin-point values. |
Special |
Special floating-point values. |
Constants
INTEGER_MAX_BIT_COUNT |
The maximum bit count for |
Traits
AddRound |
Provides addition with a specified rounding method. |
Assign |
Assigns to a number from another value. |
AssignRound |
Assigns to a number from another value, applying the specified rounding method. |
DivRound |
Provides division with a specified rounding method. |
FromPrec |
Construct |
FromPrecRound |
Construct |
MulRound |
Provides multiplication with a specified rounding method. |
NegAssign |
Negates the value inside |
NegRound |
Provides negation with a specified rounding method. |
Pow |
Provides the power operation. |
PowAssign |
Provides the power operation inside |
PowRound |
Provides the power operation inside |
ShlRound |
Provides the left shift operation with a specified rounding method. |
ShrRound |
Provides the right shift operation with a specified rounding method. |
SubRound |
Provides subtraction with a specified rounding method. |