Computer Architecture and Networks: Number System
Computer Architecture and Networks: Number System
Number System
Bijay Babu Regmi
stw0010@softwarica.edu.np
Number System
A computer can understand the positional number system where there are only a few symbols called digits and these
symbols represent different values depending on the position they occupy in the number.
1000 + 200 + 30 + 4
1234
Binary Number
Characteristics of the binary number system are as follows −
● Uses two digits, 0 and 1
● Also called as base 2 number system
● Each position in a binary number represents a 0 power of the base (2). Example 2 0
● Last position in a binary number represents a x power of the base (2). Example 2 x where x represents the
last position - 1.
● For fractional binary numbers, the column weights are negative powers of two that decrease from left to right
…..22 21 20 .2-1 2-2 2-3 …..
(16 + 0 + 4 + 0 + 1)10
(21)10
Contd...
● Fractional values are represented with negative powers of radix
Ex: 1001.101
(9.625)10
Prefixes for Binary Multiples
Conversion Between Binary and Decimal
Octal Number
Characteristics of the octal number system are as follows −
● Uses eight digits, 0,1,2,3,4,5,6,7
● Also called as base 8 number system
● Each position in an octal number represents a 0 power of the base (8). Example 80
● Last position in an octal number represents a x power of the base (8). Example 8x where x represents the last
position - 1
5449610
Hexadecimal Number System
Characteristics of hexadecimal number system are as follows −
10646210
BCD (Binary Coded Decimal)
● digital data is represented, stored and transmitted as group of binary bits
● This group is also called as binary code.
● binary code is represented by the number as well as alphanumeric letter.