Functions for converting a primitive float to a Rational, choosing the Rational with minimal denominator that rounds to the given float.
Rational