src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java
public void setGeometryDP(int dp) {
        this.geometryDP = dp;
        if (dp < 1 || dp > 10) {
            this.geometryFormat = null;
            return;
        }
        DecimalFormatSymbols dfs = new DecimalFormatSymbols();
        dfs.setDecimalSeparator('.');
        this.geometryFormat = new DecimalFormat("0." 
                + "##########".substring(0, dp), dfs);
    }
public void setGeometryDP(int dp) {
        this.geometryDP = dp;
        if (dp < 1 || dp > 10) {
            this.geometryFormat = null;
            return;
        }
        DecimalFormatSymbols dfs = new DecimalFormatSymbols();
        dfs.setDecimalSeparator('.');
        this.geometryFormat = new DecimalFormat("0." 
                + "##########".substring(0, dp), dfs);
    }
Sets the number of decimal places used to write the coordinates of
geometrical shapes in the SVG output.  Values in the range 1 to 10 will
be used to configure a formatter to that number of decimal places, for
all other values we revert to the normal String conversion of double
primitives (approximately 16 decimals places).
<p>
Note that there is a separate attribute to control the number of decimal
places for transform matrices in the output (see
{@link #setTransformDP(int)}).

@param dp  the number of decimal places (normally 1 to 10).