I thought it was kinda buggy the other day in my code ... I had
<%
'// string becaused passed from the datasource as such
firstNum = "1"
secondNum = "1.5"
firstNum = FormatNumber(firstNum, 1)
secondNum = FormatNumber(secondNum, 1)
total = firstNum + secondNum
%>
total was equalling 11.5 ... the strings combined
so I changed to this, and it worked
total = 0 + firstNum + secondNum
I don't know if it is because it understood to use addition because I
had the number 0 there ... that's my only guess ... I would like to
hear more on this anyone
Brynn
On Sat, 10 Jan 2004 21:11:01 GMT, "Jay" <jl****@optonline.net> wrote:
I have two strings that instead of adding them together to get the sum the
are concatenating together. Does anyone know how I can get these two to
add.
while not rstemp4.eof
vservdate = rstemp4("servdate")
vdesc = rstemp4("desc")
vservhours2 = rstemp4("servhours")
vtravelhours = rstemp4("travelhours")
vtech = rstemp4("tech")
shvar = shvar + rstemp4("servhours")
thvar = thvar + rstemp4("travelhours")
rstemp4.movenext
wend