
20 Sep
2011
20 Sep
'11
12:47 p.m.
Daniel Fischer writes:
A numeric range [a..a+n] might be expected to have a+n+1 elements, but that doesn't hold either for Float and Double. I think Enum for floating point values is broken
Yes, it is. Like Eq and Ord.
.. only more so. And the brokenness has infected Rational: try [1,3..20]::[Rational]