private UnsupportedOperationException unsupported(String operation, Value value) {
        return new UnsupportedOperationException("Cannot perform " + operation + " on " + value + " and " + this);
    }
Create a double which is frozen at the outset.
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/DoubleValue.java