Add a function to render rationals instead of using format

Because using format to convert to scientific notation requires that
numbers pass through a floating-point format, and because of the
possible loss of precision there leading to incorrectly-displayed
values, a new function has been added to perform the equivalent
operation by long-hand division.  Emulates the "~,vE" format control
string.