Post Reply 
Order of operations - what is 6÷2(1+2) ?
12-23-2020, 01:46 AM
Post: #70
RE: Order of operations - what is 6÷2(1+2) ?
(12-23-2020 12:38 AM)Valentin Albillo Wrote:  
(12-22-2020 08:03 PM)robve Wrote:  Not so for Basic (all Sharp PC and Visual Basic):
-2^2
-4

... and the always-forgotten-by-most-MoHPC-members HP-71B BASIC as well.

Matter of fact, if I ever saw a BASIC evaluating -2^2 as 4 I'd get rid of it.

V.

The ANSI/ISO committees agree with you. The international Standard for Full BASIC calls for -2^2 to be -4.

Tom L
Cui bono?
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) ? - toml_12953 - 12-23-2020 01:46 AM



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