Name:
Sectoin:
1.
Binary Number System
binary system, numeration system based on powers of 2, in contrast to the familiar
decimal system,
which is based on powers of 10. In the binary system, only the digits 0
and 1 are used. Thus, the first ten numbers in binary notation,
corresponding to the numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 in decimal
notation, are 0, 1, 10, 11, 100, 101, 110, 111, 1000, and 1001. Since
each position indicates a specific power of 2, just as the number 342
means (3 × 10
2) + (4 × 10
1) + (2 × 10
0),
the decimal equivalent of a binary number can be calculated by adding
together each digit multiplied by its power of 2; for example, the
binary number 1011010 corresponds to (1 × 2
6) + (0 × 2
5) + (1 × 2
4) + (1 × 2
3) + (0 × 2
2) + (1 × 2
1) + (0 × 2
0)
= 64 + 0 + 16 + 8 + 0 + 2 + 0 = 90 in the decimal system. Binary
numbers are sometimes written with a subscript "b" to distinguish them
from decimal numbers having the same digits. As with the decimal system,
fractions can be represented by digits to the right of the binary point
(analogous to the decimal point). A binary number is generally much
longer than the decimal equivalent; e.g., the number above, 1011010
b,
contains seven digits while its decimal counterpart, 90, contains only
two. This is a disadvantage for most ordinary applications but is offset
by the greater simplicity of the binary system in
computer
applications. Since only two digits are used, any binary digit, or bit,
can be transmitted and recorded electronically simply by the presence
or absence of an electrical pulse or current. The great speed of such
devices more than compensates for the fact that a given number may
contain a large number of digits.
2. Decimal
Number System
Most commonly used number system, to the base ten. Decimal numbers do
not necessarily contain a decimal point; 563, 5.63, and -563 are all
decimal numbers. Other systems are mainly used in computing and include
the
binary number system, octal number system, and
hexadecimal number system.
The decimals 0.3, 0.51, and 0.023 can be expressed as the
decimal fractions 3/10, 51/100, and 23/1,000. They are all terminating decimals. These
fractions can equally be expressed as the
percentages 30%, 51%, and 2.3%.
Decimal numbers may be thought of as written under column headings based on the number 10. For example:
Using the table, 567 stands for 5 hundreds, 6 tens, and 7 units; 28.02 stands for 2 tens, 8 units, and 2 hundredths.
567 has no numbers after the
decimal point, that is 0
decimal places. 28.02 has 2 numbers after the decimal point, that is 2 decimal places.
Large decimal numbers may also be expressed in floating-point notation.
Addition and subtraction When adding or subtracting decimals
it is important to keep the decimal points underneath each other. For
example, to work out 13.56 + 4.08 + 9:
3.
Octal Number System
The octal, or base 8, number system is a common system used with computers. Because of
its relationship with the binary system, it is useful in programming some types of
computers.
Look closely at the comparison of binary and octal number systems in table 1-3. You can
see that one octal digit is the equivalent value of three binary digits. The following
examples of the conversion of octal 2258 to binary and back again further
illustrate this comparison:
4.
Hexadecimal Number System
In mathematics and computer science, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A, B, C, D, E, F (or alternatively a–f) to represent values ten to fifteen. For example, the hexadecimal number 2AF3 is equal, in decimal, to (2 × 163) + (10 × 162) + (15 × 161) + (3 × 160), or 10995.
Each hexadecimal digit represents four binary digits
(bits), and the primary use of hexadecimal notation is a human-friendly
representation of binary-coded values in computing and digital
electronics. One hexadecimal digit represents a nibble, which is half of
an octet (8 bits). For example, byte
values can range from 0 to 255 (decimal), but may be more conveniently
represented as two hexadecimal digits in the range 00 to FF. Hexadecimal
is also commonly used to represent computer memory addresses.