Convert FLOAT to an exact value with precision PRECISION using ROUNDING-METHOD to do any neccessary rounding.
(defun decimal-from-float (float
&optional (precision *precision*)
(rounding-method #'round-half-up))
"Convert FLOAT to an exact value with precision PRECISION using
ROUNDING-METHOD to do any neccessary rounding."
(funcall rounding-method float precision))Source Context