After tracking down a bug in my code which can be neatly summarized as
julia> maxintfloat() + 1 ≤ maxintfloat() true
I was wondering how to test if an
vec[index] = elt
can be performed losslessly, if
elt <: Integer.
Am I doing something questionable by using
(m = oftype(elt, maxintfloat(T)); -m ≤ elt ≤ m)
which assumes that the minimum representable value is minus the maximum?