#include "fraction.h" #include "gcd.h" // fill the buffer buf with the decimal value of the fraction to as // high a precision as possible without exceeding length len-1 // return false if len did not allow sufficient room to represent // NaN, Inf, or -Inf, or the number prior to the decimal point, or if // long division causes overflow bool Fraction::expand(char buf[], int len) { // DUMMY IMPLEMENTATION buf[0] = '\0'; return false; } ostream& operator<<(ostream& os, Fraction f) { f.print(os); return os; }