Return an Interval[Rational] that corresponds to the error bounds for the given Double value.
Return an Interval[Rational] that corresponds to the error bounds for the given Double value.
The error bounds are represented as a closed interval, whose lower point is midway between d and the adjacent Double value below it. Similarly, the upper bound is the point midway between d and the adjacent Double value above it.
There are three Double values that return "special" intervals:
Infinity => Interval.above(Double.MaxValue) -Infinity => Interval.below(Double.MinValue) NaN => Interval.empty