title: Unknown Format Conversion Exception?
body: <p>I have the following code. During run time, an exception is generated whenever this method executes generating an <code>UnknownFormatConversionException</code>. I am trying to display the values to 2 decimal places.</p>
  
  <pre><code>public void totalPrice(Vector &lt;Stock&gt; temp){
      if(!out){
          cst = temp.elementAt(l).getCost();
          cost = Double.parseDouble(cst);
          tax = ((cost * q) * 2)/100;
          price = (cost * q) + tax;
          System.out.printf ("Product Cost: € %.2f\n", (cost * q));
          System.out.printf ("Tax Total (2% rate): € %.2f\n", tax);
          System.out.printf ("Net Cost: € %.2f\n", price); 
          System.out.println ("============================================="); 
          System.out.println (); 
      }
  }
  </code></pre>