Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
PBasic: Sequence of Operations — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
BASIC Stamp
PBasic: Sequence of Operations
koolitude
Posts:
37
2007-03-14 06:07
edited 2007-03-14 06:16
in
BASIC Stamp
Arg = ABS(DirErr) ** FULLROT >> 7 + 1 >> 1
Which of the above operations (**, >>, +) will be done first?
From left to right?
Thanks~
Comments
Phil Pilgrim (PhiPi)
Posts:
23,514
2007-03-14 06:12
edited 2007-03-14 06:12
In PBASIC, all operations are done left-to-right. However, this order can be overridden with parentheses.
-Phil
koolitude
Posts:
37
2007-03-14 06:16
edited 2007-03-14 06:16
Thanks.. just wanna make sure if I am correct... i remember reading this rule from the syntax manual... but just cant find it again... Thanks once again~
Sign In
or
Register
to comment.
Comments
-Phil