>> >> 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:17 AM, Richard Hainsworth wrote: > no operator between '5' & '(' > > That is mathematical shorthand. > > Introducing such shorthand into a programming language leads to > ambiguities. > > I'm not aware of any formal system that implies a '*' in such a situation. > > Richard > > On 02/03/2021 08:12, ToddAndMargo via perl6-users wrote: $ raku -e 'say 60÷5*(7−5)' 24 :-)Thread Previous | Thread Next