Click to See Complete Forum and Search --> : calculating 2 integers


Anon
04-11-2002, 07:31 AM
Hello people, i hope that you can help. Let's say i have this in my page:

$test = -250;
$test2 = +350;

now i want to calculate this,if i use :

$total = $test.$test2 ;
echo $total;

i get as output:
-250350

this is nog good because the result should be 150.
anybody got an idea?

Anon
04-11-2002, 07:33 AM
wrong form, i'm sorry

Anon
04-11-2002, 11:16 PM
$test = -250;
$test2 = 350;

echo $test + $test2;

result should be 100