I am trying to figure out how RobotC comes up with -1 in this scenario. Now that I looked back at bug 2 and 3, I'd bet RobotC is evaluating operators with equal precedence backwards. 0 - 0 + 1 = -1 because it is doing 0 - (0 + 1). But if that's true, I am surprise that it didn't get discovered long ago. In any case I played around with different numbers:

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum