Class Rational
Defined in File Rational.h
Nested Relationships
Nested Types
Class Documentation
-
class Rational
a fraction in lowest terms, the denominator positive
Public Functions
-
Rational(BigInteger num = 0, BigInteger den = 1)
- Pre:
den != 0
-
inline const BigInteger &num(void) const
-
inline const BigInteger &den(void) const
-
std::string toString(void) const
“u/u’”, or “u” when u’ = 1
Friends
-
Rational(BigInteger num = 0, BigInteger den = 1)