title: Append a plus sign before positive numbers
body: <p>I want to append a plus sign before numbers. I am already using format specifier:</p>
  
  <pre><code>"{0:+03f}".format(x)
  </code></pre>
  
  <p>And I've heard about those two as well, but I don't know how to use them:</p>
  
  <pre><code>"%+d" or "%+f"
  </code></pre>
  
  <p>My problem with the first one is the fact that the number after format is in float type.</p>
  
  <p>For example, I am making a small program to calculate quadratic function and I am not satisfied with output like this:</p>
  
  <pre><code>f(x) =  2x^2+2.000x-4.000000
  </code></pre>
  
  <p>Those zeros are making it looks weird. </p>
  
  <p>If not above, is there any solution to get rid of zeros when there is nothing, but only zeros after the dot?</p>