title: How to reverse the String.Format("{0:C}"..)
body: <p>We use following code to convert a decimal to a string,</p>
  
  <pre><code>td_1.InnerText = String.Format("{0:C}", price)
  </code></pre>
  
  <p>so the result could be any of following cases:</p>
  
  <pre><code>4.83 -&gt; $4.83
  0 -&gt; $0.00
  -30.24 -&gt; ($30.24)
  </code></pre>
  
  <p>my question is if there any way I can reverse the string back to a signed decimal? For example:</p>
  
  <pre><code>$4.83 -&gt;4.83
  ($30.24) -&gt; -30.24
  </code></pre>
  
  <p>I tried decimal.tryparse, doesn't seem work. Here is my code</p>
  
  <pre><code>decimal number;
  if (Decimal.TryParse(price, out number) &amp;&amp; number &lt;0)
                 ...
  </code></pre>