1 2 3 4 5 6
import Text.Printf main :: IO () main = do putStrLn $ printf "%.1f" (0.45 :: Double) putStrLn $ printf "%.1f" (0.55 :: Double)