Can someone explain this behavior?

% perl -e 'print -12.17**0.2, "\n"'
-1.64838295714428
% perl -e 'print (-12.17)**(0.2), "\n"'
-12.17% perl -e 'print ((-12.17)**(0.2)), "\n"'
nan%


Yes, the "\n" isn't getting printed for some reason on the 2nd two examples.
Bottom line:

-12.17**0.2  ==> -1.65
(-12.17)**(0.2) ==> -12.17
((-12.17)**(0.2)) ==> nan

I have absolutely zero idea what could be going on here...  Please help!

- B




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to