lundi 21 novembre 2016

Actionscript function for x^y in a calculator

I am working on a simple calculator with 2 input fields, some buttons (+,-,*,/,^,sqrt)

Any idea what function I could use for the x^y option? I mean something like: you input '3' in first field, you choose '^' option and input '3' in second field, and get 27 as answer?

I just need the mathematical function, no code, something like math.square(y) or something, no idea...

Aucun commentaire:

Enregistrer un commentaire