plll
1.0
|
Represents an arithmetic context for rational numbers. More...
#include <rational.hpp>
Public Types | |
enum | |
The properties of rational numbers. | |
typedef Rational | Real |
The rational type. | |
typedef Rational | Type |
The rational type. | |
Public Member Functions | |
RationalContext () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE | |
Creates a new rational context. | |
Static Public Member Functions | |
static unsigned long | getMaxRealPrecision () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE |
Returns the maximal possible precision for this context. More... | |
static unsigned long | getMinRealPrecision () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE |
Returns the minimal possible precision for this context. More... | |
static unsigned long | getRealPrecision () PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE |
Returns the precision of this context. More... | |
static void | setRealPrecision (unsigned long prec) PLLL_INTERNAL_NOTHROW_POSTFIX_INLINE |
Sets the precision of this context. (Will do nothing.) More... | |
Represents an arithmetic context for rational numbers.
Definition at line 355 of file rational.hpp.
|
inlinestatic |
Returns the maximal possible precision for this context.
Will return a very large number.
Definition at line 422 of file rational.hpp.
|
inlinestatic |
Returns the minimal possible precision for this context.
Will return a very large number.
Definition at line 412 of file rational.hpp.
|
inlinestatic |
Returns the precision of this context.
Will return a very large number.
Definition at line 402 of file rational.hpp.
|
inlinestatic |
Sets the precision of this context. (Will do nothing.)
Since rationals always have infinite precision, this simply does nothing.
prec | The precision to be set. |
Definition at line 393 of file rational.hpp.