fixed precision and speed in quo_rem