develooper Front page | perl.perl6.users | Postings from December 2019

square root question

Thread Next
From:
ToddAndMargo via perl6-users
Date:
December 15, 2019 01:44
Subject:
square root question
Message ID:
97ae7389-4467-35a1-346d-91f7af6427d7@zoho.com
Hi All,

Am I pushing it with the unicodes here?

say sqrt(2)
1.4142135623730951

say 2.sqrt
1.4142135623730951

say ½*2.sqrt
0.7071067811865476


say 2.√
===SORRY!=== Error while compiling:
Malformed postfix call
------> say 2.⏏√

say √2
===SORRY!===
Argument to "say" seems to be malformed
------> say⏏ √2
Bogus postfix
------> say ⏏√2
     expecting any of:
         infix
         infix stopper
         postfix
         statement end
         statement modifier
         statement modifier loop


Many thanks,
-T

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About