title: round exponential float to 2 decimals
body: <p>I want to round exponential float to two decimal representation in Python.  </p>
  
  <pre><code>4.311237638482733e-91 --&gt; 4.31e-91
  </code></pre>
  
  <p>Do you know any quick trick to do that?<br>
  Simple solutions like <code>round(float, 2)</code> and <code>"%.2f"%float</code> are not working with exponential floats:/</p>
  
  <p><strong>EDIT:</strong>
  It's not about rounding float, but rounding exponential float, thus it's not the same question as <a href="https://stackoverflow.com/questions/3410976/how-to-round-a-number-to-significant-figures-in-python">How to round a number to significant figures in Python</a></p>