>> On Tue, 2 Mar 2021, 08:13 ToddAndMargo via perl6-users, >> <perl6-users@perl.org <mailto:perl6-users@perl.org>> wrote: >> >> >> Hi All, >> >> Math problem: >> x = 60÷5(7−5) >> >> raku -e 'say 60÷5(7−5)' >> No such method 'CALL-ME' for invocant of type 'Int' >> in block <unit> at -e line 1 >> >> Seems raku does not like the (). How do I fix this >> and maintain the flow and look of the equation? >> >> -T >> >> The correct answer is 24 >> On 3/2/21 12:16 AM, Simon Proctor wrote: > You need to put in the multiplication sign. > Hi Simon and Richard, Now I feel dumb! $ raku -e 'say 60÷5*(7−5)' 24 Thank you! The formula is an example of left to right precedence. -TThread Previous | Thread Next