title: VBS convert string to floating point
body: <pre><code>Dim strnumber
  strnumber = "0.3"
  
  Dim add
  add = 0.1
  
  Dim result 
  result  = strnumber +  add
  
  MsgBox result
  </code></pre>
  
  <p>I want to get <code>0.4</code> as result, but get <code>3.1</code>.
  I tried <code>clng(strnumber)</code> and <code>int(strnumber)</code>, nothing works. There is a simple solution for sure but I won't find it.</p>
  
  <p>EDIT: Solution</p>
  
  <pre><code>result  = CDbl(Replace(strnumber,".",",") +  add
  </code></pre>