Page 1 of 1

Difference between 2 numbers

Posted: Thu Jan 24, 2013 7:44 am
by Nakia
Hi,

What is the operator to calculate the difference between 2 numbers?

For example

Value 1 = -250
Value 2 = 250

Difference in numbers equals 500 etc..

Sorry if this is a dumb question but I have not had to do it before !

Re: Difference between 2 numbers

Posted: Thu Jan 24, 2013 8:17 am
by FourthWorld
The key may be the abs (absolute) function:

put abs( tVal1 - tVal2)


[We have a momentary limit on the server in which it requires a minimum of 100 chars, so this sentence is just filler; please ignore]