title: format number (based on calculation) as a percentage to two decimal places using python
body: <p>The values:
      budget = 11,000
      actual = 10,000
      variance = budget - actual (1,000)</p>
  
  <pre><code>total, would be the value of budget variable: 11,000
  </code></pre>
  
  <p>My Code: </p>
  
  <pre><code>percent_val = variance/total
  format_percent = {:.2f}.format(percent_val)
  return format_percent
  </code></pre>
  
  <p>I Thought the above code would retun the value 9.09 (at two decimal places)</p>
  
  <pre><code>return value: 9.09
  </code></pre>
  
  <p>This video shows it, but I can't see to get it to work using the {0:2.df} string?</p>
  
  <pre><code>http://www.youtube.com/watch?v=mmJPx6YsOMI
  </code></pre>
  
  <p>HOW DO I format the 9.09 percent as a number and not a string so I can do calculations with it later?</p>