Change wrong name

This commit is contained in:
Rnhmjoj 2015-02-27 01:10:10 +01:00
parent 25e13c005a
commit 079adf3ae9

View File

@ -18,7 +18,7 @@ io f = interact (unlines . map f . filter (not . null) . lines)
result :: Either String Double -> String
result (Left err) = "Ꞥ∘ " ++ err
result (Right x) = printf ("ꟼ∘ " ++ format) x where
format = if ceiling n == floor n then "%.0f" else "%.10f"
format = if ceiling x == floor x then "%.0f" else "%.10f"
-- Solve a RPN expression