A more generic fraction printer.
More flexible zero values printing.