Ok, I'm doing some calculations with fields, but I'm always ending up with a negative number. I can't figure out why it's always showing a - sign in front of the Total value. Lets say 'Field1' is 10 and 'Field2' is 5. Now you would think, the 'Total' value would be 5, but it keeps showing up as -5. Here's what I've got.
$rec{'Total'} = int(($rec{'Field1'} - $rec{'Field2'}));
I also tried adding the total to itself, then multiplying by 2, but then it just gives me -10! Aargh, it works well on a calculator!! :(
I didn't think my math was that bad, but I'm stumped. Any ideas? Thanks.
$rec{'Total'} = int(($rec{'Field1'} - $rec{'Field2'}));
I also tried adding the total to itself, then multiplying by 2, but then it just gives me -10! Aargh, it works well on a calculator!! :(
I didn't think my math was that bad, but I'm stumped. Any ideas? Thanks.

