title: Convert string to float in Python ' 0,3638412'
body: <p>Im trying to convert a string to a float</p>
  
  <p>with the float function:</p>
  
  <pre class="lang-python prettyprint-override"><code>
     pointsx = float(x)
  </code></pre>
  
  <p>got error:</p>
  
  <pre class="lang-python prettyprint-override"><code>&gt;ValueError: could not convert string to float: ' 0,3638412'
  </code></pre>
  
  <p>Any ideas on how to fix this?</p>
  
  <p><img src="https://i.stack.imgur.com/qiBwa.png" alt="enter image description here"></p>