The Nth root of a given number is that number raised to the reciprocal of N. Thus:
print $num ** (1/3);Update: Heh. Looks like I beat the rush. Is this where I delete everything and replace it with "first post!"? :)
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: getting a cube root
by Ovid
in thread getting a cube root
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |