@Override
    public boolean asBoolean() { return value != 0.0; }
Create a double which is frozen at the outset.
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/DoubleValue.java