It seems like you're misusing Range here. Maybe you want to look at ValidatedNumerics or Unums? What's your use-case?
On Thursday, June 2, 2016, <colintbow...@gmail.com> wrote: > Hi all, > > Is there any way to build a range that corresponds to the mathematical set > (-Inf, Inf)? I had a look at the source code in range.jl (which is very > readable!) and it doesn't appear that any of the Range types is suitable to > this task, e.g. StepRange doesn't take Float64 inputs, UnitRange(-Inf, Inf) > returns the range (-Inf, NaN) since the constructor returns convert > (T,start+floor(stop-start)) for the stop value (I'm presuming for good > reasons that I'm not smart enough to understand), and FloatRange needs > concepts like step, len, and divisor that aren't well defined in this > context. > > Cheers, > > Colin > > >