calculation problem

Results 1 to 3 of 3

Thread: calculation problem

  1. #1
    John Shearer Guest

    Default calculation problem

    hi all, i&#039ve got a problems while trying to add, minus, times and divid 2 variables. they are both retreive from Oracle database and come up in the asp as a &#039decimal subtype&#039. However, i always got a &#039type mismatch&#039 error. <BR>eg. value = price * quantity which variable &#039price&#039 and &#039quantity&#039 are drawn from database and i put it in a new variable called &#039value&#039 in asp. what&#039s wrong? please help me as i could not solve it during the weekend. Thanks & thanks.

  2. #2
    rho Guest

    Default RE: calculation problem

    try to convert the variables price and quantity of datatypes either long or decimal and then carry out the multiplication<BR><BR>hope this helps

  3. #3
    John Shearer Guest

    Default RE: calculation problem

    Thanks but it still doesn&#039t work by converting the variables. is that any tricks when declaring the variables? or that&#039s error on the variable "value"?<BR>many thanks

Posting Permissions

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