title: Seekbar crashes due to String format
body: <p>The SeekBar on my tip calculator app crashes when I enter %<strong>0</strong>.02f as a parameter in the format method.</p>
  
  <pre><code>tipAmountEditText.setText(String.format("%0.02f", tipAmount));
  </code></pre>
  
  <p>I fixed this problem by removing the integer part thus becoming just <code>%.02f</code>. The only feature I can say about this issue is that it popped up using a ChangeListener. I do not understand why this would be an issue and I hope someone could enlighten me. If you need see the bigger picture, my code in its entirety is on my github: <a href="https://github.com/xamroc/TipCalc" rel="nofollow">https://github.com/xamroc/TipCalc</a></p>
  
  <pre><code>private OnSeekBarChangeListener tipSeekBarListener = new OnSeekBarChangeListener() {
  
      @Override
      public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {
  
          tipAmount = (tipSeekBar.getProgress()) * .01;
  
          tipAmountEditText.setText(String.format("%.02f", tipAmount));
  
          updateTipAndFinalBill();
  
      }
  
  };
  </code></pre>