Problems with math

Discussion in 'Mac Programming' started by Eeveelover, Jul 15, 2012.

  1. Eeveelover, Jul 15, 2012
    Last edited: Jul 15, 2012

    macrumors newbie

    Joined:
    Jul 15, 2012
    Location:
    Norway
    #1
    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.
     
  2. macrumors 68020

    charlieegan3

    Joined:
    Feb 16, 2012
    Location:
    U.K
    #2
    display dialog 2 ^ 3

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

    math term is: exponential
     
  3. thread starter macrumors newbie

    Joined:
    Jul 15, 2012
    Location:
    Norway

Share This Page