[Haskell-cafe] Re: money type ?

Simon Michael simon at joyful.com
Thu Jul 12 05:14:55 EDT 2007

Great - indeed,

 > sum [1.85, 5.95, -7.80]
 > sum [1.85::Money, 5.95, -7.80]

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!

More information about the Haskell-Cafe mailing list