is it bug?

Alexandr Druzhinin drug2004 at bk.ru
Wed Apr 10 22:13:43 PDT 2013


05.04.2013 1:26, Ali Çehreli пишет:
>
> I was wrong. What I found is just a workaround. Created a bug for iota:
>
>    http://d.puremagic.com/issues/show_bug.cgi?id=9877
>
> The following program fails when compiled with -m32:
>
> import std.range;
>
> void main()
> {
>      float st = 0.000000000000000;
>      float step = 12.038554191589355;
>      float en = 999.200012207031250;
>
>      iota(st, en, step);
> }
>
> Ali
>
Ali, please, take a look at this http://dpaste.dzfl.pl/44e64eb0
it's code of ctor of iota float point specialization. And it's strange 
for me, that pastEnd and (start + count * step) have the same value, but 
give different comparing results.


More information about the Digitalmars-d-learn mailing list