Is there a simple function to round a Double or Float to a specified number of digits? I\'ve searched here and on Hoogle (for (Fractional a) =>
Double
Float
(Fractional a) =>
λ: ((/100) $ fromIntegral $ round (0.006 * 100)) == 0.006 λ: False λ: ((/100) $ fromIntegral $ round (0.06 * 100)) == 0.06 λ: True