
8 Feb
2014
8 Feb
'14
3:46 p.m.
On Sat, Feb 8, 2014 at 3:39 PM, Nicolas Trangez
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
Key word there is "Fixed"; deka supports floating point with up to 34 digits of precision but, yes, Data.Fixed does solve some of this problem.