Data form question

Patrix

Member
Join Date
Aug 2011
Location
Enschede
Posts
107
Hello everyone,

Maybe a simple question for you people, but i break my head on this one.
What are integers, signed/unsigned, real, floating point, BCD, etc.
i understand what decimal, binary,oct and hex are.

Can anybody explain what these data forms are and what the toughts behind all this is or maybe where i can find a explanation on the net.

Thanx in advance.
 
What are integers, signed/unsigned, real, floating point, BCD, etc. i understand what decimal, binary,oct and hex are.
You are dealing with two different concepts.

To review: storage of numbers is in individual bits gathered into groups called 'words'. While the individual bits can store useful ON/OFF information by themselves it is their use in these groups that numbers are stored.

The descriptions "integers, signed/unsigned, real, floating point, BCD" are different methods of using the bits to store the numbers. You describe three basic ways to use the bits.

Integers (whether signed or unsigned) begin with the least significant bit representing a 0 or 1 and each higher bit representing 2 times the preceding. The highest bit may or may not be used as a sign indicator.

BCD groups the bits 4 at a time. Each group can store 0-9. Each higher group's value is 10 times the lower group's value.

Real - Floating Point typically use the IEEE 754 method for storing much larger and smaller numbers. We won't go into the actual method here.

Your other descriptions - "decimal, binary, oct and hex" - are different ways of showing a stored value to YOU, the human. BCD has only one way of being shown practically and that is essentially the same as 'hex'. Real/Floating Point stored numbers could be shown as whole numbers (if that is what is being stored), with the use of decimal points or using exponential notation (7.2 E5 or 7.2*10^5 for example). The various methods are to make the value of a stored number useful to you.

So, the short answer is some of them are ways of storage, the others are methods of display.

As an addendum, another method of storage may be 8 bits at a time (or 16 bits - Unicode - if more complex alphabets are used) if text is being stored. It's display method, most practically is as characters of the alphabet or ideographs.
 
Last edited:

Similar Topics

Hi everyone, I am new here, I am working in a project where SCADA Data need to upload(insert in to) Database table in real-time, I am Using AVEVA...
Replies
1
Views
1,193
Why can't you use a data change with an OR expression. Like Tag1 OR Tag2 Or Tag3? It kind of works but unless a make three data change scripts...
Replies
8
Views
2,933
Hi all, I'm trying to access to archestrA from c#.But i can't find wonderware tookit to take dll file.Do you have wonderware tookit?is possible to...
Replies
0
Views
2,567
We are doing a proof of concept to try the following 1) get data from KepServer 2) The Data will be transformed eg: a Status code of 1 gets...
Replies
0
Views
1,214
Hi guys, Im new to VB and im trying to create a form that will save the data from the form to Notepad. But when I click the "save" button I made...
Replies
15
Views
4,826
Back
Top Bottom