重複の可能性:
Haskell:式[0、0.1..1]の予期しない出力
Haskellでは、次の結果の理由を誰かが知っていますか?
Prelude Data.List> map (\x -> x - 0.1) [0.2,0.3..0.9]
[0.1,0.19999999999999998,0.29999999999999993,0.3999999999999999,0.4999999999999999,0.5999999999999998,0.6999999999999996,0.7999999999999995]
それ以外の
[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8]