Signed versus unsigned types

What does signed/unsigned mean in relation to a data type?
philjhAsked:
Who is Participating?
 
Arthur_WoodConnect With a Mentor Commented:
Phil,

Numeric values, such as Integers, or Long Integers, in VB, have a SIGN. That is they can be EITHER positive (+) OR Negative (-).  This limits integers to values bewteen +32767 and -32768.  If this were an UNSIGNED value, then integers would range from 0 to 65536.

Essentially what is involved is that in the 16-bit integer value in memory, the "HIGH-ORDER" bit is treated as a SIGN bit, (0 means POSITIVE, 1 means Negative in that ONE bit).

VB DOES NOT support UNSIGNED number TYPES.

0
 
philjhAuthor Commented:
Thanks Arthur,
Looks like I was trying to over-complicate the matter.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.