Quote Originally Posted by iugmoh View Post
Hi all, I want to ask if there are any mathematical operator or command can find the power of any number for example i want to find (2^7) which is equal 128 ?
Not as such, at least not the way you want it...but this works too...

Result var Long
t1 var long '2 in the above example
t2 var long '7 in the above example
t3 var long 'counter

result = t1 : for t3 = 1 to ( t2 - 1 ) : result = result * t1 ) : next t3

I'd bet good money that DT has a macro already made for just this sort of thing...