title: How to convert string to float with Python .get()?
body: <p>So this is pretty simple I', sure I just can't seem to figure it out.</p>
  
  <p>Using Tk module to create a GUI, I have an entry field that requires a float input to do math with.</p>
  
  <p>At the moment I get this error</p>
  
  <pre><code>floatval1 = float(val1)
  </code></pre>
  
  <blockquote>
    <p>could not convert string to float</p>
  </blockquote>
  
  <p>The code section looks like this:</p>
  
  <pre><code>val1 = entry1.get()
  val2 = entry2.get()
  floatval1 = float(val1)
  floatval2 = float(val2)
  formula12 = (((((((floatval1/100)*(floatval2)/100))*86.67)+bevel+44)*2.4)*1.1)
  bevel = (((floatval1/100)*2)+((floatval2/100)*2))*3.5
  glprice12 = formula12 + bevel
  </code></pre>
  
  <p>Obviously I've tried to convert the entry fields, entries to a float so it can be used in this formula.</p>
  
  <p>I cant see a reason why it would not allow this, any help would be greatly appreciated.</p>
  
  <p>Kind Regards,</p>