Apply a fractional formatting to any type.
A default instance for any
Real is provided which internally
converts to
Double, which may not be efficient or results in
rounding errors.
You can provide your own instance and internally use
formatFractional which does have the same signatures as
pyfFormatFractional but with a
RealFrac constraint.