Rounding oddity - what is special about “100”?
问题 Does anyone have an explanation for this strange rounding in haskell (GHCi, version 7.2.1). Everything seems fine unless I multiply with 100. *Main> 1.1 1.1 *Main> 1.1 *10 11.0 *Main> 1.1 *100 110.00000000000001 *Main> 1.1 *1000 1100.0 *Main> 1.1 *10000 11000.0 Edit: what is puzzeling me is that the rounding error only shows when multiplying with 100. Edit(2): The comments I received made me realize, that this it totally unrelated to haskell, but a general issue with floating point numbers.