PDA

View Full Version : Problems with math




Eeveelover
Jul 15, 2012, 12:10 PM
How do I get the formula "x times itself y times" to work in AppleScript?
Example: If x = 2 and y = 3, the question will be x * x * x and the answer will be 8 (sorry if this post was hard to understand, I'm from Norway).

EDIT: Problem solved.



charlieegan3
Jul 15, 2012, 12:14 PM
display dialog 2 ^ 3

OR:
set x to 2
set y to 3
display dialog x ^ y

math term is: exponential

Eeveelover
Jul 15, 2012, 12:18 PM
Thanks :D