Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Appendix A: Number Systems and Bit-wise Operations
Last change: February 13 2016 18:47:29.
<<PreviousNext>>

A.1. Number Systems

Human beings use the decimal system for numbers. We count from 0 to 9 before adding another digit in presenting the number. Computers, on the other hand, operate on bits (binary digits) and bytes. A number is represented internally in the computer by setting various bits on or off. For example, the number zero is represented by setting off all bits used for that number; and one, the lowest bit, on. Because a bit has only two states (on and off), to go to the next number (2), the lowest bit is turned off, while the next lowest bit is turned on. Such a system is recognized as the binary number system. This coding system can be depicted as follows:

Binary system
Decimal system
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
Last change: February 13 2016 18:47:30.
  1. A.1. Number Systems
    1. Converting Between the Two Systems
    2. From Binary to Decimal
    3. From Decimal to Binary
    4. The Hex Decimal Representation
    5. Converting Between Hex and Decimal Numbers
    6. Representing Hex Numbers in VB
    7. Why Discuss Number Systems?
    8. <<PreviousNext>>