@Override
    public int compareTo(FieldValue fieldValue) {
        int comp = super.compareTo(fieldValue);

        if (comp != 0) {
            return comp;
        }

        //types are equal, this must be of this type
        FloatFieldValue otherValue = (FloatFieldValue) fieldValue;
        return Float.compare(value, otherValue.value);
    }
A 32-bit float field value

@author Einar M R Rosenvinge
document/src/main/java/com/yahoo/document/datatypes/FloatFieldValue.java