[Issue 18227] Assertion failure in iota for floating point
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Sep  8 11:14:38 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=18227
Berni <dlang at croco-puzzle.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang at croco-puzzle.com
--- Comment #1 from Berni <dlang at croco-puzzle.com> ---
While looking at that problem, I found some related problems:
------
iota(-5.0,double.max,1.0)
leeds to "Conversion positive overflow", due to end-start = +infinity
------
iota(0.0,1e30,1.0);
leeds to "Conversion positive overflow", due to 1e30 > long.max
------
import std.math: nextUp;
iota(0.0,1.0,nextUp(0.0));
leeds to "Conversion positive overflow", due to > long.max potential elements
------
iota(1,1+2*float.epsilon,float.epsilon/4)
Works at the moment, but might lead to an endless loop, depending on the
bugfix.
--
    
    
More information about the Digitalmars-d-bugs
mailing list