public static double requireNotEquals(double val, double otherVal) {
        if (val == otherVal) {
            throw new IllegalArgumentException(val + IS_EQUAL_TO + otherVal);
        }
        return val;
    }
Returns the given value if it is not {@code 0}.

@param val  to check
@return     the given value

@throws IllegalArgumentException if the given value is zero
common-parent/invariant/src/main/java/com/speedment/common/invariant/DoubleRangeUtil.java