public boolean isNaN() {
        return hasDouble() && Double.isNaN(asDouble());
    }
Returns true if this has a double value which is NaN
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/Value.java