let string_of_rat = function Rat r -> Num.string_of_num r