Formatted strings for rounding in python
<p>I want to round a integer using formatted strings, but it has to be via a parameter asked. I have the following code where p is the amount of decimals to be rounded to.</p>

<pre><code>def fahrenheit_to_celsius(t, p):
    celsius = ((t - 32.0) * 5.0 / 9.0)

    print "%f "%(celsius)
</code></pre>
