in reply to Re: Which function for third root of number ?
in thread Which function for third root of number ?

If you're looking for perfect cubes ....
use POSIX qw(ceil floor); if (ceil($num ** 1/3) == floor($num ** 1/3)) { print $num . " is a cube of " $num ** 1/3; } else { print $num . " is not a perfect cube."; }
Like all of my code the above is untested and comes with no warrenty implied or otherwise.