|
Vrasp Newbie
Joined: 06 Jan 2006 Posts: 3
|
Posted: Sat Mar 14, 2009 1:26 pm
Math Exponents/Powers |
Is there any way to do exponents in ZMud? I'm asking because I'm trying to do my exponent as a decimal, eg 2^0.5
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sun Mar 15, 2009 6:21 am |
Not directly but you can use #MSS to access VB script. Something like this should do the trick.
Code: |
#SCRIPT {function test(x,y):test=x^y:end function}
#SHOW %mss("test(2,2)") |
|
|
_________________ Asati di tempari! |
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Mon Mar 16, 2009 1:15 pm |
Didn't someone write a number of scripts to handle math in Zmud? I don't much need those but I saw it several years back.
|
|
|
|
|
|