summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrpn.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpn.hs b/rpn.hs
index 68c0831..ff7dd6c 100755
--- a/rpn.hs
+++ b/rpn.hs
@@ -40,7 +40,7 @@ fromSymbol (Number x d) = (x, d)
40fromSymbol _ = (0, 0) 40fromSymbol _ = (0, 0)
41 41
42 42
43pPrint :: Show a => Symbol a -> String 43pPrint :: (Show a, Fractional a) => Symbol a -> String
44pPrint (Number x d) = (show x) ++ " ± " ++ (show d) ++ " (relative error: " ++ (show $ d / x) ++ ")" 44pPrint (Number x d) = (show x) ++ " ± " ++ (show d) ++ " (relative error: " ++ (show $ d / x) ++ ")"
45pPrint s = show s 45pPrint s = show s
46 46