How to display the decimal

Results 1 to 2 of 2

Thread: How to display the decimal

  1. #1
    Jenny Guest

    Default How to display the decimal

    Hi, <BR><BR>I would like to display the decimal with 2 places after the decimal point, like 18.50.<BR>I wrote the code like:<BR>&#060;% Dim Unit, Qty, Amount, Tax, Total<BR> Unit = RS("Price")<BR> Qty = RS("ProQty")<BR> Amount = Unit * Qty <BR> Tax = Amount * 0.075<BR> Total = Amount + Tax<BR>%&#062;<BR>But sometime the result shows like 15, I would like the result shows like 15.00. Please advise how to do this. <BR>Thank you very much!<BR>Jenny

  2. #2
    Join Date
    Dec 1969

    Default RE: How to display the decimal

    Check &#039;FormatNumber&#039; function in your VBScript docs.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts