Shop OBEX P1 Docs P2 Docs Learn Events
Read Statement using Negative Numbers — Parallax Forums

Read Statement using Negative Numbers

ArchiverArchiver Posts: 46,084
edited 2000-07-29 23:33 in General Discussion
How can I read a negative number using the READ statement. If I read
a -1, and use it in calculations it looses it sign and coverts from a
twos complement into 255 when the math is done. hence if I try to
add the -1, I actually add 255. How can I instruct the variables
that the data is signed?

Comments

Sign In or Register to comment.