Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Signed versus unsigned types

Posted on 2002-03-21
Medium Priority
Last Modified: 2010-05-02
What does signed/unsigned mean in relation to a data type?
Question by:philjh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Accepted Solution

Arthur_Wood earned 80 total points
ID: 6885202

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).



Author Comment

ID: 6885272
Thanks Arthur,
Looks like I was trying to over-complicate the matter.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question