Signed versus unsigned types

Posted on 2002-03-21
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 20 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bit defender blocks good applications 2 115
vb6 connector to SQL Server 2 42
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 64
TT Auto Dashboard 13 104
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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