title: Convert.ToDecimal; - An unhandled exception
body: <p>Im getting this error when i debug my program</p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll</p>
  </blockquote>
  
  <pre><code>public partial class Form1 : Form
  {
       int newCount;
       int oldCount;
  
       private void timerGetData_Tick(object sender, EventArgs e)
       {
           string u = webBrowser1.DocumentText;
           u = u.Substring(u.IndexOf("&lt;span id=\"PCoins\" class=\"Pcoins\""));
           u = u.Substring(u.IndexOf("&gt;") + 1);
           u = u.Substring(0, u.IndexOf("&lt;/span&gt;"));
           textBoxCoins.Text = u;
  
           newCount = Convert.ToDecimal(u);
           if (newCount &lt;= oldCount)
           {
               textBoxNewCount.Text = "WON";
               oldCount = newCount;
           }
           else
           {
               oldCount = newCount;
               textBoxNewCount.Text = "LOSS";
           }
           timerGetData.Stop();
       }
  }
  </code></pre>
  
  <p>The debugging is stopping at <strong><em>newCount = Convert.ToDecimal(u);</em></strong></p>
  
  <p>Can anyone help me?</p>