|
power(x,n) |
|
x = Any number n = Any number
Returns x to the power of n. In computers this is often written x^n. At school they probably taught you to write xn.
If either x or n or both are 0, the result is 1. If n is positive x is multiplied with itself n times. If n is negative 1 is divided n times by x.
Example #1:
tsg1zzn / Mithunder - Revision #2 |