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:
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum