Skip to main content

Introduce the number system

 .

Number  is a way to represent or express the numbers in a computer system which is known as the number system. Number system plays a great role in computing and electronics. Before numbers, people used stones and sticks for the purpose of counting. Decimal system was discovered by great Hindu philosophers, since then man are using it as their daily need. In our day to day activities we use decimal number system which uses symbols 0,1,2,3,4,5,6,7,8 and 9 to represent digits. However, computers only understand binary numbers which uses symbols 0 and 1 to represent the digit. 

Decimal Number System

The Decimal Number System has the base number 10 and this notation is called the decimal notation. This number system has its applications in computer and computer science. The decimal number are written with subscript 10 as (4532)10  or with suffix D as 3642D.
For example : (56425)10 or (56425)D

Binary Number System

Binary number system is used by computers and digital electronic devices. The base or radix of the binary number system is 2. So binary number system uses two symbols 0 and 1 to represent the digits. The digit 0 is represented by LOW voltage and digit 1 is represented by HIGH voltage. A binary number digit (either a 0  or 1) is  called bit. 
For example : (1101001.11)

Octal Number Number System 

Octal number system uses eight symbols 0,1,2,3,4,5,6 and 7 to represent the digits for octal number system.. As the octal number system uses eight symbols, its base or radix is eight. 
For example: (43673)8 or (43673)O

Hexadecimal Number System 

The hexadecimal number system uses sixteen different symbols to represent its digits, so its base or radix is sixteen. The symbols used in hexadecimal number system are 0,1,2,3,4,5,6,7,8 and 9 frim decimal number system and A,B,C,D,E and F from the alphabets. The symbols, A,B,C,D,E and F correspond to the decimal numbers 10,11,12,13,14 and 15 respectively.
For example :  (19B4DA)16 or (19B4DA)H


Conversion Binary to Decimal 

To convert a binary number to its decimal equivalent, we use the weight of each binary digit first. The weight of the nth bit of a number counted from right to left = 2n-1. The value of the digit = Digit * weight = nth  bit * 2n-1. After calculating the value of each bit, they are added to get the decimal values. let's see the following example.

(101101.001)2 = (?)10

= 1*25 + 0*24 + 1*23 + 1*22 +0*21 + 1*20 + 0*2-1 + 0*2-2 + 1*2-3

= 1*32 + 0 *16 + 1* 8 + 1 * 4 + 0 * 2 + 1*1 + 0 * 1/2 + 0 * 1/4 + 1* 1/8

=32 + 0 + 8 + 4 + 1 + 0 + 0 + 1/8

=  45/8

So (101101.001)2 = (45/8)10

Octal to Decimal

Similar to the conversion from binary to decimal, we use a similar conversion technique using the digit weight. The weight of the nth number from right to lest = 8n-1. The value of the digit is calculated as digit * weight = digit nth* 8n-1. After calculating value of each digit, we add them to get the decimal values. Let's see the following example.

(465.65)8 = (?)10

= 4 * 82 + 6 * 81 + 5 * 80 + 6 * 8-1 + 5 * 8-2

= 4 * 64  + 6 * 8 + 5 * 1 + 6 * 1/8 + 5 * 1/64

= 256 + 48 + 5 + 6/8 + 5/64

= 320/72               = 4.44

Hexadecimal to Decimal 

The conversion from hexadecimal to decimal is done in the same way as with binary to decimal or octal to decimal. The weight of nth number from right to left = 16n-1. The value of the digit = digit * weight =  nth digit *8n-1. After calculating the value of each digit, we add them to get the decimal values. Let's see the following example.

(B5D)16 = (?)16

= B * 162 +  5 * 161 + 13 * 160

= 11 * 256 + 5 * 16 + 13 * 1

= 2816 + 80 + 13

= 2909

So (CAB)16 = (2909)10



Home

Comments

Popular posts from this blog

Introduce Linux, UNIX and Linux distribution.

 . Linux Linux is an open source operating system. The term Linux is actually referred to mean a kernel of Unix like operating system developed by a Finish software architect Linus Torvald. The name Linux is derived from Linus' Unix. Linux was originated from the inspiration of a small Unix like operating system MINIX by A.S Tanenbum. Linux is a complete multiuser, multiprocessing, secure and stable operating system which is also considered as UNIX clone. However no code from the proprietary from AT and T is included in Unix. It has flavor of Unix but is not Unix. UNIX  UNIX is a layered operating system. The innermost layer is the hardware that provides the service for the OS. The operating system, referred to in UNIX as the kernel, interacts directly with the hardware and provides the services to the user program. These user programs don't need to know anything about the hardware. They just need to know how to interact with the kernel and it's up to the kernel to provide ...

Introduction of Computer

.  A computer is an electronic device. It take input and store the data in memory and performing the function to produce accurate result in output device. It is used to type document, send email, play game, browse the web and entertainment.   Characteristics of computer  1 . High speed  Computer is very fast device. It is capable of performing calculation of very large amount of data. The computer has unit of speed in microsecond, nanosecond and even in picosecond. The computer is capable of performing millions of tasks per second. 2. Accuracy  The computer produces highly accurate and reliable result.  It does not make any kind of mistake in calculating. The calculation are 100% error free. The computers perform accurate 'n' number of times. 3. Storage capability A computer has much more storage capability. It can store large amount of data. It can store any type of data such as image, video, text document, audio and many more. 4. Diligence Diligence ...

Open System Interconnect (OSI) Reference Model

 . Open system interconnection (OSI) Model explains how packet travels through various layers to other devices on a network, even if the sender and destination have different types of network media. Layer 1(Physical layer):  Function  To activate, maintain, deactivate the physical connection.  To define voltage and data rates needed for transmission.  To convert the digital bits into electrical signals.  To decide weather the transmission the transmission is simplex, half or full duplex.  Physical layer doesn’t perform the detection and correction of errors. Layer 2 (Datalink layer):  Framing (stream of bits into manageable data units):  The datalink layer divides the stream of bits received from the network layer into frame manageable data units called frames.  Physical addressing (MAC Address):  Data link layer adds a header to header to the frame to define the sender and receiver of the frame. Flow Control (mechanism for overwhel...