Solved

Signed versus unsigned types

Posted on 2002-03-21
2
246 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
Comment Utility
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
Comment Utility
Thanks Arthur,
Looks like I was trying to over-complicate the matter.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 …
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now