title: Classic ASP FormatNumber Making Number 0.0
body: <p>I am trying to get a decimal value 2 places past the decimal...</p>
  
  <p>I am looking to get the average of some numbers, and then display them in a table..</p>
  
  <p>Here is my code and then my output</p>
  
  <pre><code>&lt;% response.write(rsTemp("8over") &amp; "&lt;BR&gt;") %&gt;
  &lt;% response.write(rsTemp5("qty") &amp; "&lt;BR&gt;") %&gt;
  
  &lt;% PercentageOver = rsTemp("8over")/rsTemp5("qty")%&gt;
  
  &lt;% response.write(PercentageOver &amp; "&lt;BR&gt;") %&gt;
  
  &lt;% PercentageOver = FormatNumber(PercentageOver,2) %&gt;
  
  &lt;% response.write(PercentageOver) %&gt;
  </code></pre>
  
  <p>Output:</p>
  
  <pre class="lang-none prettyprint-override"><code>2
  618
  3.23624595469256E-03
  0.00
  </code></pre>
  
  <p>What am I doing wrong? I have tried all kinds of things like CDbl etc...</p>