@Override
    protected int onCmp(ResultNode rhs) {
        double b = rhs.getFloat();
        if (Double.isNaN(value)) {
            return Double.isNaN(b) ? 0 : -1;
        } else {
            if (Double.isNaN(b)) {
                return 1;
            } else {
                return Double.compare(value, b);
            }
        }
    }
Sets the value of this result.

@param value The value to set.
searchlib/src/main/java/com/yahoo/searchlib/expression/FloatResultNode.java