#include <OnixS/Senaf/MarketData/Rational.h>
Definition at line 32 of file Rational.h.
Constructs default instance.
Definition at line 88 of file Rational.h.
Rational |
( |
long long |
numerator, |
|
|
unsigned int |
denominator |
|
) |
| |
|
inline |
Create initialized instance.
Definition at line 94 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 115 of file Rational.h.
operator double |
( |
| ) |
const |
|
inline |
Implicit conversion to double number type.
Definition at line 125 of file Rational.h.
Implicit conversion to float number type.
Definition at line 120 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 35 of file Rational.h.
The documentation for this struct was generated from the following file: