title: Convert a string to decimal in VB.NET
body: <p>What will be the easiest way to convert a string to decimal?</p>
  
  <p>Input:</p>
  
  <pre><code>a = 40000.00-
  </code></pre>
  
  <p>Output will be</p>
  
  <pre><code>40,000.00-
  </code></pre>
  
  <p>I tried to use this code:</p>
  
  <pre><code>Dim a as string
  
  a = "4000.00-"
  
  a = Format$(a, "#,###.##")
  console.writeline (a)
  </code></pre>