Author Topic: An equivalent of the pow() function in Torquescript  (Read 598 times)

Is there an equivalent of the "pow()" function in Torquescript?  Here's a line from a C program that I'd like to put into Torque:

denom = 1 - pow((intpay+1),(-ttlpay));

but unfortunately, it seems that the "pow" function isn't recognized in Torque.

Code: [Select]
mPow(%num,%exponent)
Math functions are denoted with an m in Torque.