title: Python Convert string to float or int dynamically
body: <p>I have a string that I have to convert into int or float depending or the case :</p>
  
  <pre><code>What I have    =&gt; What I want
  "548189848.54" =&gt; 548189848.54
  "548189848.50" =&gt; 548189848.5
  "548189848.00" =&gt; 548189848
  </code></pre>
  
  <p>Is it possible to do it ?</p>
  
  <p>Thanks,</p>
  
  <p>Steve</p>