[Issue 6531] assertion failure in std.range.iota
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 6 01:47:10 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6531
--- Comment #5 from Martin Nowak <code at dawg.eu> 2013-04-06 01:47:07 PDT ---
> if (pastEnd <= end) ++count;
This is definitely wrong. There are only 100 steps in [0, 0.03 ..., 3.0).
The problem was that assert(0.0 + 100 * 0.03 >= 3.0) fails because of
floating-point excess precision.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list