Data.Fixed.Extras
toFixed :: forall res a. (Num a, HasResolution res) => (a -> Integer) -> a -> Fixed res Source #
Round to fixed precision using a rounding function.
>>> toFixed ceiling 0.12345 :: Milli 0.124
>>>
toFixed ceiling 0.12345 :: Milli