Multiplying Something With 1.0x
how can I multiply a number with 1.0x.
View Replieshow can I multiply a number with 1.0x.
View Repliescan any on tell me the code for adding 2 or more items up and the code for multiplying from a user input box and a set number?
View Replies View RelatedI need to multiply a price by a quantity. I'm using the following:
intTotal = (int(strPrice) * int(strQuantity))
strPrice contains the value 20.80 and strQuantity contains the value 10
It gives me a total of $200 when it should be $208. Why does it discard the .80 cents in the multiplication? What can I do to fix it?
I have 3 fields in a table that need to have math functions. Field 1 x field 2 = field 3, then total by customer code and display on a page. How can this be done?
View Replies View Relatedi thought all variables in asp/vbscript were variant? so then why cant i multiply?
im taking 2 fields from a database and trying to multiply them. first i tried:
<%= oRs("FIELD1") * oRs("FIELD2") %>
and got "type mismatch". so i tried:
<%
intQuantity = oRs("FIELD1")
fltPrice = oRs("FIELD2")
Response.Write(intQuantity * fltPrice)
%>
and i still get type mismatch!!
i tried: Val(oRs("FIELD"))
i tried: oRs("FIELD").Value
and STILL i get type mismatch! whats going on??