title: need help coverting string to type number(20,3)
body: <p>I have a field name varaince in a table set to type Number(20,3) in oracle.....
  I get number as string from the webpage and convert it to Double so I can write it back to table as shown below</p>
  
  <pre><code>if ( (this.getVariance() != null) &amp;&amp; (this.getVariance().length() &gt; 0) )
                  cstmt.setDouble(7,Util.stringToDouble(this.getVariance()));
              else
                  cstmt.setNull(7,OracleTypes.NUMBER);
  </code></pre>
  
  <p>but i am getting this error</p>
  
  <pre><code>compile:
       [exec] com\sample\common\javabean\ExampleBean.java:261: cannot resolve symbol
       [exec] symbol  : method setDouble (int,java.lang.Double)
       [exec] location: interface java.sql.CallableStatement
       [exec]                             cstmt.setDouble(7,Util.stringToDouble(this.getVariance()));
       [exec]           
  
                         ^
  </code></pre>
  
  <p>when i was doing samething as integer it didnt give me error but it didnt write to table.</p>
  
  <p>What can be done to convert string in such a way that table will write that number from the form. Any help would be good</p>