Jump to content
The simFlight Network Forums

Offset Unsigned or Signed


Recommended Posts

What is the difference between Unsigned (U) or Signed (S) values in the OFFSET parameters?

Well, just the obvious, really -- signed numbers have a sign: in other words they can be positive or negative. Unsigned numbers can only be positive (or zero of course).

So, for example, a signed byte can contain -128 to +127 whilst an unsigned byte can be 0 to 255. Similarly a 16-bit (2-byte) word is 0 to 65535 unsigned, or -32768 to +32767 signed.

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.