2**3
or
exp(log(2)*3)
** and other operators are documented in perlop. exp, log and other core functions (aka "named operators") are documented in perlfunc.
Update: Added the exp-log expression. It's not very useful in Perl, but I threw it in since it's useful in languages without an exponentiation operator or function. In fact, ** is probably implemented as the exp-log expression.
In reply to Re: some number to the power of any other number
by ikegami
in thread some number to the power of any other number
by dbdiaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |