title: How do I convert String to Number according to locale javascript
body: <p>If I do:</p>
  
  <p><code>var number = 35000.25; alert(number.toLocaleString("de-DE"));</code> I will get <code>35.000,25</code> in German.</p>
  
  <p>But how can I convert it back to <code>35000.25</code> or I want something like:</p>
  
  <p><code>var str='35.000,25'; alert(str.toLocaleNumber("en-US"));</code> So, that it can give <code>35,000.25</code>.</p>
  
  <p>Is it possible by JS?</p>