class DoubleStringConverter implements StringValue {

    /**
     * Formatter for limiting precision to 6 decimals, avoiding precision errors (epsilon).
     */
    public static final DecimalFormat FORMAT = new DecimalFormat("0.0#####");

    static {
        DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(Locale.ENGLISH);
        symbols.setInfinity("Infinity");
        FORMAT.setDecimalFormatSymbols(symbols);
    }

    @Override
    public String getString(Object value) {<FILL_FUNCTION_BODY>}
}

        String str = null;
        if (value != null) {
            str = FORMAT.format(value);
        }

        return str;
    
<no_super_class>