title: asp classic FormatNumber bidding script
body: <p>Afternoon, </p>
  
  <p>Im playing around with a little bidding script im trying to write. But im having trouble with formatNumber function.</p>
  
  <pre><code>currentBid = 50.51 'from database dataType double(16,2)
  yourBid = isNumeric(Request("bid"))
  
  If FormatNumber(yourBid,2) &gt; FormatNumber(currentBid,2) Then
    Response.Write"bid successful... woop woop"
        else
    Response.Write"you cant bid below the current asking price"
  end if
  </code></pre>
  
  <p>But if i was to bid 1000 is writes "you cant bid below the current asking price"</p>
  
  <p>Please advise</p>
  
  <p>Regards<br>
  Shane</p>
  
  <pre><code> 'Changed as advised
  
   currentBid = 50.51 'value from database
  
   If IsNumeric(Request.Form("bid")) Then
   yourBid = CDbl(Request.Form("bid"))
   end if
  </code></pre>