math functions in asp

Results 1 to 2 of 2

Thread: math functions in asp

  1. #1
    Join Date
    Dec 1969

    Default math functions in asp

    I want the output of a cost field in my database not to show the actual number, but the number multiplied by some other number(ie 2*cost field) Does this make sense?!<BR>Another words the field is wholesale prices but When someone submits a product search, I don&#039t want them to see the wholesale price, what I want to show is the wholesale price times 2!

  2. #2
    Join Date
    Dec 1969

    Default RE: math functions in asp

    I am assuming you are doing:<BR><BR>The Cost is &#060;%=rs("Cost")%&#062;<BR><BR>Or something like that. Simply do:<BR><BR>The Cost is &#060;%=CDbl("Cost") * 2%&#062;<BR><BR>Happy Programming!

Posting Permissions

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