title: Convert string to double or any numerical type variable in C#
body: <p>I've got a program that reads xml files. I already have a code that reads specific elements and places it in a variable. The only thing missing is comparing an element(a number) to a double variable, but elements are considered as string. All I have seen in Google is conversion of double to string. How do you convert a string to double?</p>
  
  <p>EDIT:</p>
  
  <p>I've got it now, I can't answer my own question yet 'coz I still have low reputation. This is what I've come so far and it works:</p>
  
  <pre><code>string stringNum = "2";
  double value = double.Parse(stringNum);
  </code></pre>