Solved

Signed versus unsigned types

Posted on 2002-03-21
2
248 Views
Last Modified: 2010-05-02
What does signed/unsigned mean in relation to a data type?
0
Comment
Question by:philjh
2 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 20 total points
ID: 6885202
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
 

Author Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

830 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