Documente Academic
Documente Profesional
Documente Cultură
Page 1 of 7
Examples :
a. 1910
1910 = 2 19
2 9 1 (LSB)
2 4 1
2 2 0
2 1 0
0 1 (MSB)
1910 = 100112
b. 0.4062510 = 0.40625 x 2 = 0.8125 0 (MSB)
= 0.8125 x 2 = 1.625 1
= 0.625 x 2 = 1.25 1
= 0.25 x 2 = 0.5 0
= 0.5 x 2 = 1.0 1 (LSB)
0.62510 = 0.011012
c. 0.610 = 0.6 x 2 = 1.2 1 (MSB)
= 0.2 x 2 = 0.4 0
= 0.4 x 2 = 0.8 0
= 0.8 x 2 = 1.6 1
= 0.6 x 2 = 1.2 1 (LSB)
0.610 = 0.100112
To convert decimal numbers to their octal equivalent, the following procedures are employed:
Whole-number conversion: Repeated division-by-8.
Fractional number conversion: Repeated multiplication-by-8.
Page 2 of 7
Examples :
a. 24510
24510 = 8 245
8 30 5 (LSD)
8 3 6
0 3 (MSD)
24510 = 3658
b. 0.43210 = 0.432 x 8 = 3.456 3 (MSD)
= 0.456 X 8 = 3.648 3
= 0.648 x 8 = 5.184 5
= 0.184 x 8 = 1.472 1 (LSD)
0.43210 = 0.33518
To convert decimal numbers to their hexadecimal equivalent, the following procedures are employed:
Whole-number conversion: Repeated division-by-16.
Fractional number conversion: Repeated multiplication-by-16.
Page 3 of 7
Examples :
a. 5410
5410 = 16 54
16 3 6 (LSD)
0 3 (MSD)
5410 = 3616
b. 0.8710 = 0.87 x 16 = 13.92 D (MSD)
= 0.92 x 16 = 14.72 E
= 0.72 x 16 = 11.52 B
= 0.52 x 16 = 8.32 8 (LSD)
0.8710 = 0.DEB816
The binary number is divided into groups to three bits, counting to the right and to the left from the
binary point and then each group of three is interpreted as an octal digit.
Examples :
a. 11010101.011012
The binary number is divided into groups to four bits, counting to the right and to the left from the
binary point and then each group of four is interpreted as an hexadecimal digit.
Examples :
a. 111010101.011012
Computers work in binary code. Information is coded using 0s and 1s. Each 0 or 1 is called a bit. In the
early years of computer development, different computer companies applied the binary system in
Page 4 of 7
their own way. The code for the letters in the word “cat” was often different in different brands of
computers.
Eventually, a set of standards was developed. Computer manufacturers agreed to use one code called
the ASCII (American Standard Code for Information Interchange). ASCII is an 8-bit code. That is, it uses
eight bits to represent a letter or a punctuation mark. Eight bits are called a byte. A binary code with
eight digits, such as 1101 10112, can be stored in one byte of computer memory.
Examples :
a. The word "CAT" in a word processor becomes 0100 00112, 0100 00012, and 0101 01002.
b. The word "cat" is 0110 00112, 0110 00012, and 0111 01002.
Page 5 of 7
In computers, floating-point numbers are represented in scientific notation of fraction (F)
and exponent (E) with a radix of 2, in the form of F×2E. Both E and F can be positive as well as negative.
Modern computers adopt IEEE 754 standard for representing floating-point numbers. There are three
representation schemes:
a. 8-bit floating point
b. 32-bit single precision floating point
c. 64-bit double precision floating point
Page 6 of 7
QUESTIONS
1. Convert the following decimal numbers into binary and hexademical number. (3m)
a. 108
b. 48.48
c. 903.3
2. Convert the following binary numbers into hexademical and decimal number. (3m)
a. 1000011000
b. 10001.100
c. 1010101.01010
3. Convert the following octal numbers into binary and hexadecimal number. (3m)
a. 434
b. 7.01
c. 45.6
4. Below is a question that is in ASCII code. Using the provided ASCII translation table,
translate the question and answer it in the area provided. (3m)
a. 01000100 01001001 01010000 01001100 01001111 01001101 01000001
b. 01001001 01001110 01001111 01010101 01010010
c. 01001000 01000001 01001110 01000100
5. Represent each of the following using the 8-bit floating-point format. (18m)
a. 2.25
b. -80.0
c. 1/32
Page 7 of 7