Post Reply 
Order of operations - what is 6÷2(1+2) ?
12-12-2020, 01:55 PM
Post: #34
RE: Order of operations - what is 6÷2(1+2) ?
(12-12-2020 04:58 AM)toml_12953 Wrote:  
(12-12-2020 12:32 AM)Massimo Gnerucci Wrote:  So when you write x/2y what you really mean is (x*y)/2?
Luckily we have PEJMDAS!

Turns out that PEMDAS is quite a novelty and that its core fans are North American teachers...

Yes, to most programmers I know it means (x/2)*y.

Programmers, perhaps, but what about programming languages? Most would treat x/2y as a syntax error, and x/y2 as division of two variables x and y2 (except those primitive languages that only allow single letter variable names).

— Ian Abbott
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Order of operations - what is 6÷2(1+2) ? - ijabbott - 12-12-2020 01:55 PM



User(s) browsing this thread: 1 Guest(s)