[Haskell-cafe] [ANN] deka - decimal arithmetic

Nicolas Trangez nicolas at incubaid.com
Sat Feb 8 20:39:40 UTC 2014


Note there's some existing support for this in `base`:

On Sat, 2014-02-08 at 15:06 -0500, Omari Norman wrote:
> but for a short explanation, go into ghci and type:
> 
> print $ 0.1 + 0.1 + 0.1

λ print $ (0.1 + 0.1 + 0.1 :: Double)
0.30000000000000004

λ :m + Data.Fixed
λ print $ (0.1 :: Fixed E1) + (0.1 :: Fixed E1) + (0.1 :: Fixed E1)
0.3

Nicolas



More information about the Haskell-Cafe mailing list