Double.MIN_VALUE is something else. Should be Double.NEGATIVE_INFINITY.