(frob %long-float long-float))
;;; Convert a ratio to a float. We avoid any rounding error by doing an
(frob %long-float long-float))
;;; Convert a ratio to a float. We avoid any rounding error by doing an
;;; consistency, since this is ultimately how the reader reads a float. We
;;; scale the numerator by a power of two until the division results in the
;;; desired number of fraction bits, then do round-to-nearest.
;;; consistency, since this is ultimately how the reader reads a float. We
;;; scale the numerator by a power of two until the division results in the
;;; desired number of fraction bits, then do round-to-nearest.