2 * @file arbrationals.cpp
3 * @brief Tests Rational<Arbint>
16 int main(int argc, char ** argv)
21 for (unsigned i = 0; i < TEST_CASES; ++i)
23 double d = (double)(rand()) / (double)(rand());
24 Rational<Arbint> r(d);
25 Debug("%f -> %s -> %s/%s", d, r.Str().c_str(), r.P.DigitStr().c_str(), r.Q.DigitStr().c_str());