On 04/04/2013 08:45 AM, Alexandr Druzhinin wrote: > 04.04.2013 21:24, Ali Çehreli пишет:
>> The problem seems to be in your code because your step calculation >> ignores a remainder. This works: >> >> // OLD: step = width / factor; >> step = (width + factor - 1) / factor; >> >> Ali >> > that works, thank you very much! but provide some link to some good > article that explains my mistake, I didn't realize it clearly 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
