——————————————————————————————————————–
There are many number systems such as decimal, binary, hexadecimal, octal number system etc. Here we will focus Decimal, Binary and Hexadecimal number system.
Decimal Number System : This number system will use following 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 numbers to express any number. This number system’s base is 10 .
Binary Number System : This number system is using only two numbers 0 and 1 to express all numbers. 11 is decimal equivalent 3.So this number system’s base is 2.
Hexadecimal Number System : This number system is using 16 number (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F) to express all numbers. So this number system’s base is 16. D is 13 decimal equivalent.
Conversion from one number system to another system :
Decimal to Binary : We can write 5 = 1x2^2 + 0x2^1 + 1x2^0 so the binary value of decimal 5 is 101.
Decimal to Binary : We can write 18 = 1x16^1 + 2x16^0 so hexadecimal equivalent of 18 is 12
Decimal | Binary | Hexadecimal |
---|---|---|
0 | 0 | 0 |
1 | 1 | 1 |
2 | 10 | 2 |
3 | 11 | 3 |
4 | 100 | 4 |
5 | 101 | 5 |
6 | 110 | 6 |
7 | 111 | 7 |
8 | 1000 | 8 |
9 | 1001 | 9 |
10 | 1010 | A |
11 | 1011 | B |
12 | 1100 | C |
13 | 1101 | D |
14 | 1110 | E |
15 | 1111 | F |
16 | 10000 | 10 |
17 | 10001 | 11 |
18 | 10010 | 12 |
19 | 10011 | 13 |
20 | 10100 | 14 |
1 or 0 is known as single bit or simply a bit. 8 consecutive bit is known as byte. Therefore 1 byte = 8 bit.
1 Kilo Byte (1 Kb) = 1024 byte
1 Mega Byte (1 Mb) = 1024 Kb
1 Giga Byte (1 Gb) = 1024 Mb
1 Terra Byte (1 Tb) = 1024 Gb
8 bit processor register can hold , store or process 1 byte data.This processor support 2^8 = 256 byte memory.
16 bit processor register can hold, store or process 2 byte data.This processor support 2^16 = 64 Kb memory.
32 bit processor register can hold, store or process 4 byte data.This processor support 2^32 = 4 Gb memory.
64 bit processor register can hold, store or process 8 byte data.This processor support 2^48 = 256 Tb memory.
© 2024 KeblaOS Project. All rights reserved.