#include <Rational.h>
Definition at line 30 of file Rational.h.
Constructs default instance.
Definition at line 86 of file Rational.h.
Rational |
( |
long long |
numerator, |
|
|
unsigned int |
denominator |
|
) |
| |
|
inline |
Create initialized instance.
Definition at line 92 of file Rational.h.
Converts Rational representation to needed number type.
Target number type should have accessible constructor from int
type, and should have visible operator/
.
Decimal d = rational.convertTo<Decimal>()
Definition at line 110 of file Rational.h.
operator double |
( |
| ) |
const |
|
inline |
Implicit conversion to double number type.
Definition at line 120 of file Rational.h.
Implicit conversion to float number type.
Definition at line 115 of file Rational.h.
bool operator!= |
( |
const Rational & |
right | ) |
const |
|
inline |
bool operator< |
( |
const Rational & |
right | ) |
const |
|
inline |
bool operator<= |
( |
const Rational & |
right | ) |
const |
|
inline |
bool operator== |
( |
const Rational & |
right | ) |
const |
|
inline |
bool operator> |
( |
const Rational & |
right | ) |
const |
|
inline |
bool operator>= |
( |
const Rational & |
right | ) |
const |
|
inline |
std::string toString |
( |
| ) |
const |
This value indicates that value is in not set.
Definition at line 33 of file Rational.h.
The documentation for this struct was generated from the following file: