J
James
This must be the dumbest of problems I ever came up with
but I just cannot remember how to add????
I am using frontpage and getting some results from a
database which then i need to manipulate.
Let us assume database returned values No1 = 8 and No2 = 3
If I then try a subtraction:
<%test=No1-No2%>
it would result with test = 5. Perfect
Similarly multiplication and division also work well. Also
perfect.
Even complex formulas involving several multiplications
and divisions work fine.
But if I try a simple addition:
<%test=No1+No2%>
I get test = 83 (result is concatenated not added)
Can anyone help me with a simple solution for this. I do
not wish to have to resort to script for a simple addition.
Thanks.
but I just cannot remember how to add????
I am using frontpage and getting some results from a
database which then i need to manipulate.
Let us assume database returned values No1 = 8 and No2 = 3
If I then try a subtraction:
<%test=No1-No2%>
it would result with test = 5. Perfect
Similarly multiplication and division also work well. Also
perfect.
Even complex formulas involving several multiplications
and divisions work fine.
But if I try a simple addition:
<%test=No1+No2%>
I get test = 83 (result is concatenated not added)
Can anyone help me with a simple solution for this. I do
not wish to have to resort to script for a simple addition.
Thanks.