#include <sstream>
#include <cln/rational.h>
#include <cln/input.h>
+#include <cln/io.h>
+#include <cln/output.h>
#include <cln/rational_io.h>
#include <cln/number_io.h>
/** Returns a string representing the rational in the given base. */
std::string toString(int base = 10) const {
+ cln::cl_print_flags flags;
+ flags.rational_base = base;
+ flags.rational_readably = false;
std::stringstream ss;
- fprint(ss, d_value);
+ print_rational(ss, flags, d_value);
return ss.str();
}