Hi folks,

I�m pretty new in haskell and I'm wondering about the following list
HUGS98 gave me:

I typed :
Prelude> [1, 1.1 .. 10] 
and expected an ascending list from 1 to 10 in exact steps of 0.1


This is what Hugs gave me:
[1.0 , 1.1, (...) 7.7, 7.79999, 7.89999, 7.99999, 8.09999, 8.2, 8.3,
(...) ,10.0]

So why occur e.g. 7.79999 instead of 7.8 ?



Sebastian

Reply via email to