title: convert string to double
body: <p>I have string value in that I need to convert to double in VB.Net. Conditions are like below</p>
  
  <pre><code>string = "12345.00232232"
  </code></pre>
  
  <p>if condition is 3 (2 digits after decimal and comma)</p>
  
  <pre><code> display = 12,345.00
  </code></pre>
  
  <p>if condition is 5 (5 digits after decimal and comma)</p>
  
  <pre><code>display = 12,345.00232
  </code></pre>
  
  <p>If Condition is 7 ( 5 digits after decimal and no comma)</p>
  
  <pre><code>display = 12345.00232
  </code></pre>
  
  <p>How can I do that in VB.Net?</p>