NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Perl is better? (Score:1)
-1
Am I missing something here?
--fREW
http://blog.afoolishmanifesto.com
Re:Perl is better? (Score:1)
indeed you are:
C:\Users\burak>perl -MO=Deparse -le "print (-1) ** (1/2)"
BEGIN { $/ = "\n"; $\ = "\n"; }
print(-1) ** 0.5;
-e syntax OK
try this instead:
print( (-1) ** (1/2) )
Reply to This
Parent
Re: (Score:1)
--fREW
http://blog.afoolishmanifesto.com
Re: (Score:1)
$ ruby -e 'puts ((-1) ** (1/2.0))'NaN
Re: (Score:2)