Results 1 to 3 of 3

Thread: X2 devices and parentheses

  1. #1
    New Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    10

    Default X2 devices and parentheses

    According to the manual (book 2 page 23), X2 devices are supposed to allow expressions like:

    w2 = (b8 + b9) * 7
    or

    but when I do this I get a syntax error, and I have to split it into two expressions.

    Is this a bug in the manual, programming software, or me?

  2. #2
    Technical Support
    Join Date
    Jan 1970
    Location
    UK
    Posts
    19,934

    Default

    Unfortunately the manual in this case is running ahead of the implementation and this capability is not yet available.

  3. #3
    Senior Member
    Join Date
    Jan 2011
    Location
    UK
    Posts
    4,222
    Blog Entries
    12

    Default

    As PICAXE maths works left to right, your code will work properly without brackets. BIDMAS is not taken into account on PICAXE.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •