Shop OBEX P1 Docs P2 Docs Learn Events
PBasic: Sequence of Operations — Parallax Forums

PBasic: Sequence of Operations

koolitudekoolitude Posts: 37
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)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-03-14 06:12
    In PBASIC, all operations are done left-to-right. However, this order can be overridden with parentheses.

    -Phil
  • koolitudekoolitude Posts: 37
    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.