Great - indeed,

> sum [1.85, 5.95, -7.80]
8.881784197001252e-16
> sum [1.85::Money, 5.95, -7.80]
0.00

I'm not yet sure these will do the best thing in all arithmetic, but it seems to be the right thing for now.

Yes, I will need to read these also. Perhaps first reading the integer and decimal digits as separate integers will help. I'm still exploring the number types.

Thanks for the tips!

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to