Change wrong name
This commit is contained in:
parent
25e13c005a
commit
079adf3ae9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user