66 operator float()
const;
69 operator double()
const;
115inline Rational::operator float()
const
120inline Rational::operator double()
const
137 return !(*
this == right);
152 return right < *
this;
157 return !(right < *
this);
162 return !(*
this < right);
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
Rational number representation.
bool operator>(const Rational &right) const
static const long long NO_VALUE
This value indicates that value is in not set.
bool noValue() const
Indicates if Rational has no value.
bool operator<=(const Rational &right) const
bool operator<(const Rational &right) const
std::string toString() const
string representation of Rational
long long numerator
Numerator.
bool operator>=(const Rational &right) const
bool operator!=(const Rational &right) const
bool operator==(const Rational &right) const
Rational comparison.
unsigned int denominator
Denominator.
Rational()
Constructs default instance.