Quote:
Originally posted by Ian W.
actually, PBASIC can handle negatives, or at least it says it can. it just has nasty habits of screwing them up if you do to much with the negative number. this year i programmed the robot with a few equations that went negative but then came back positive right away.
|
That's correct. I did the same thing. PBASIC works with negative numbers EXCEPT when dividing (including modulus) and comparing (including MAX and MIN.) Those are the only exceptions I can think of right now. There may be more though (like probably trigonometric functions).