title: Formatting a String to be Converted to Double
body: <p>I'm trying to convert a <code>string</code> to <code>double</code>. The incoming string is always going to be a whole number...no decimals. So, for example "90".</p>
  
  <pre><code>double percentToCheck = Convert.ToDouble(String.Format("{0:0.00}", SomeEntity.KeyIDs.SomePercentTrigger));
  </code></pre>
  
  <p><code>SomePercentTrigger</code> is the % that I will be converting.</p>
  
  <p>I get a "string is not in the correct format" error so how should I format this string? I've got to format it because if I don't I get the same error with just this during the conversion:</p>
  
  <pre><code>double percentToCheck = Convert.ToDouble(SomeEntity.KeyIDs.SomePercentTrigger);
  </code></pre>
  
  <p>UPDATED:</p>
  
  <p><code>SomePercentTrigger</code> is simply a <code>string</code> such as "80"..it'll always be a whole number too.</p>