public final void writeFloat(float value, DecimalFormat format) {
        if (format == null || jsonb) {
            writeFloat(value);
            return;
        }
        if (Float.isNaN(value) || Float.isInfinite(value)) {
            writeNull();
            return;
        }

        String str = format.format(value);
        writeRaw(str);
    }
If ReferenceDetection has been set, returns the path of the current object, otherwise returns null
@since 2.0.51
@return the path of the current object
core/src/main/java/com/alibaba/fastjson2/JSONWriter.java