Implementation for class rational. More...
#include <ostream>#include "rational.hh"#include "euclid.hh"
Go to the source code of this file.
Functions | |
| std::ostream & | operator<< (std::ostream &out, const rational &rat) |
| Print a rational number to an output stream. | |
Implementation for class rational.
Definition in file rational.cc.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const rational & | rat | |||
| ) |
Print a rational number to an output stream.
A nominator of one will be omitted.
| out | the stream to which the number is written. | |
| rat | the rational number to be printed. |
Definition at line 41 of file rational.cc.
References rational::denom, and rational::nom.
1.6.0