title: How to strip and convert string to float (decimals)?
body: <p>I am trying to convert a string which is like "  8,191.55 MB  " to " 8191.55"
  so that I can divide it by 1024 to get it in GigaBytes.</p>
  
  <p>Code I am trying gives me " 819155" instead of "8191.55"</p>
  
  <p>Code :</p>
  
  <pre><code>TotalRAM = dfHandler['Total Physical Memory'].values[0]
  TotalRAM = (int)(''.join(i for i in TotalRAM if i.isdigit()))
  </code></pre>