I want to know the first double from 0d upwards that deviates by the long of the \"same value\" by some delta, say 1e-8. I\'m failing here though. I\'m trying to do this i
Off hand, I thought that doubles could represent all integers (within their bounds) exactly.
If that is not the case, then you're going to want to cast both i and d to something with MORE precision than either of them. Perhaps a long double will work.