[Haskell-cafe] Why does [1.0, 3 ..4] contain 5?

Brandon Allbery allbery.b at gmail.com
Wed Oct 19 19:24:29 UTC 2016


On Wed, Oct 19, 2016 at 8:13 AM, Bence Kodaj <bence.kodaj at gmail.com> wrote:

> Does anybody happen to know why [1.0, 3 ..4 ] is [1.0, 3.0, 5.0] ?
>

Nobody seems to know, aside from "that's what the Libraries part of the
Report says". You'd probably have to find the committee that added it to
the Report (good luck...) to learn their logic. (The quirks of FP
arithmetic don't seem to be involved, since the overshoot is overkill for
that.)

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161019/5b22cfc2/attachment.html>


More information about the Haskell-Cafe mailing list