Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
An equivalent of the pow() function in Torquescript
« previous
next »
Print
Pages: [
1
]
Author
Topic: An equivalent of the pow() function in Torquescript (Read 598 times)
Mindraker
January 15, 2009, 08:47:37 PM
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.
Ad Bot
Advertisement
Truce
January 15, 2009, 08:50:10 PM
Code:
[Select]
mPow(%num,%exponent)
Math functions are denoted with an m in Torque.
Mindraker
January 15, 2009, 08:52:39 PM
Thanks!
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
An equivalent of the pow() function in Torquescript