I am trying to sum 2 variables but does not seem to work,
Here is what I have tried
Code:
<%response.Write(rsGuestbook("crqty1")*rsGuestbook("UnitPrice1"))%>
and
<% Dim
Num1=rsGuestbook("crqty1")
Num2=rsGuestbook("UnitPrice1")
Response.write(Num1*Num2)
%>
I prefer to convert to "Double" instead "integer".
Maybe in this case Cint() will work, but keep in mind that there is a value range vor Cint: -32,768 to 32,767 .
The range for CDbl is
-1.79769313486232E308 to -4.94065645841247E-324 for negative values and 4.94065645841247E-324 to 1.79769313486232E308 for positive values.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.