0% found this document useful (0 votes)
247 views6 pages

Binary Number System Conversions

Numbering systems represent numbers in computer systems using defined sets of digits. The document discusses four main numbering systems: binary uses the digits 0 and 1, octal uses digits 0-7, decimal uses 0-9, and hexadecimal uses 0-9 and A-F. It provides examples of how to convert between these numbering systems by grouping digits and looking up values in tables. Converting between bases involves repeatedly dividing by the new base to obtain remainders that make up the number in that base.

Uploaded by

Mine Rahol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
247 views6 pages

Binary Number System Conversions

Numbering systems represent numbers in computer systems using defined sets of digits. The document discusses four main numbering systems: binary uses the digits 0 and 1, octal uses digits 0-7, decimal uses 0-9, and hexadecimal uses 0-9 and A-F. It provides examples of how to convert between these numbering systems by grouping digits and looking up values in tables. Converting between bases involves repeatedly dividing by the new base to obtain remainders that make up the number in that base.

Uploaded by

Mine Rahol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Numbering System

Numbering systems are the technique to represent numbers In the computer system
architecture, easy value that you are saving or getting into/ from computer memory has a
defined number system.
Computer architecture supports following number systems.

 Binary number system


 Octal number system
 Decimal number system
 Hexadecimal (hex) number system
BINARY NUMBER SYSTEM :- A Binary number system has only two digits that are 0
and 1. Every number (value) represents with 0 and 1 in this number system. The base of
binary number system is 2, because it has only two digits.
OCTAL NUMBER SYSTEM :- Octal number system has only eight (8) digits from 0 to 7.
Every number (value) represents with 0,1,2,3,4,5,6 and 7 in this number system. The base of
octal number system is 8, because it has only 8 digits.
DECIMAL NUMBER SYSTEM :- Decimal number system has only ten (10) digits from 0
to 9. Every number (value) represents with 0,1,2,3,4,5,6, 7,8 and 9 in this number system.
The base of decimal number system is 10, because it has only 10 digits.
HEXADECIMAL NUMBER SYSTEM :- A Hexadecimal number system has sixteen (16)
alphanumeric values from 0 to 9 and A to F. Every number (value) represents with
0,1,2,3,4,5,6, 7,8,9,A,B,C,D,E and F in this number system. The base of hexadecimal
number system is 16, because it has 16 alphanumeric values. Here A is 10, B is 11, C is 12,
D is 14, E is 15 and F is 16

Generally we have seen in the above explanation of number systems. We


will see here in table.
Number Base(Radix Used digits Examples
system )
Binary 2 0,1 (111100000)2
Octal 8 0,1,2,3,4,5,6,7 (340)8
Decimal 10 0,1,2,3,4,5,6,7,8,9 (3400)10
Hexadecima 16 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E, (3F5A)16
l F

Numbering system conversion


 Binary to octal: To convert a number in binary to octal group three binary
digits together starting from the last digit (right) and if there are no enough digits
add zeros to the front End (left) and find the corresponding Octal of each group.

Binary: 11100101= 11 100 101

011 100 101 Pad the most significant digits


(3 4 5)8 with zeros if necessary to
complete a group of three.

 Binary to decimal: Multiply the digit with 2(with place value exponent).
Eventually add all the multiplication becomes the Decimal number.
 *A number X1 X2 X3 …Xn in base M can be expanded as
(X0 X1 X2 X3 …..Xn) M=X0*mn-1+X1*mn-2X2*mn-3+ …Xd-1*m1+Xnm0 in base 10

 Ex:- The binary number 1101 may be expanded as


(1101)2 =1*23+1*22+0*21+1*20 =(1*8)+(1*4)+(0*2)+(1*1)=(13)10

 Binary to Hexadecimal:- To convert binary to hexadecimal group four


binary digits together starting from right and if there are no enough digits add zeros
at the left.

Binary: 11100101 = 1110 0101


Then look up each in group in a table below :-

Binary: 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 11 11
10
Hexadec 0 1 2 3 4 5 6 7 8 9 A B C D E F
imal:

Binary 1110 0101


Hexadecimal E 5

(11100101)2=(E5)16

 Octal to binary : - Converting from octal to binary is as easy as converting from


binary to octal. Simply look up each octal digit to obtain the equivalent group of three
binary digits.

Octal: 0 1 2 3 4 5 6 7
Binary 000 001 010 011 100 101 110 111
:
EX : - convert (346) to (?) 8 2

Octal 3 4 6
Binary 011 100 110
Then it give as (011100110)2
 Octal to decimal : - The conversion can also be performed in the conventional
mathematical way, by showing each digit place as an increasing power of 8.
(345)8= (3 * 82 ) + (4 * 81 ) + (5 * 80 ) = (3 * 64) + (4 * 8) + (5 * 1) = (229) 10
 Octal to Hexadecimal : -When converting from octal to hexadecimal, it is
often easier to first convert the octal number into binary and then from binary into
hexadecimal. For example, to convert 345 octal into hex:
Octal 3 4 5
Binary 011 100 101 =(011100101)2
Drop any leading zeros or pad with leading zeros to get groups of four binary digits
(bits): Binary 011100101 = 1110 0101=(E5)16
 Decimal to an other bases : - To convert a decimal number X to a
number in base m, divide X by m, store the remainder, again divide the quotient
by M, store the remainder, and continue until the quotient is 0. And concatenate
(collect) the remainders starting from the last up to the first.

Decimal to binary : - Ex.. Convert 5610 to base two (binary) X=56 M=2

5610 =1110002

Decimal to Octal : -

EX. Convert 7810 to base eight (Octal)

7810=1168
Decimal to Hexadecimal : -

EX.. Convert 3010 to base sixteen (hexadecimal)

3010=1E16

Convert 1610 to base sixteen (hexadecimal)

1610=1016

 Hexadecimal to binary : -Converting from hexadecimal to binary is as easy as


converting from binary to hexadecimal. Simply look up each hexadecimal digit to obtain
the equivalent group of four binary digits.

Example : -(A2DE)16=(1010 0010 1101 1110)2

 Hexadecimal to octal : - To convert from hexadecimal to octal, first


convert the hexadecimal to binary and then the binary to octal.

Hexadecimal: A 3 E
Binary : 1010 0011 1110

(101 000 111 110)2=(5 0 7 6)8

Hexadecimal to Decimal : - The conversion can also be performed in the


conventional mathematical way, by showing each digit place as an increasing power of 16.

To convert a number X consists of digits X 1 X2 X3 …Xn in base m to decimal;


simply expand the number with base M. That is

(X1X2X3…Xn) m =X1*mn-1+X2*mn-2 +X3*mn-3+...+ Xi*mn-i+… Xn-1m1+Xn*m0

=Y10

Convert (A1B) 16 to decimal

= (2587)10

Convert (101)16 to decimal


=(257)10
THANK YOU FOR YOUR
RECOMMENDATION ! !

Common questions

Powered by AI

The binary number system differs significantly from the decimal system in terms of digit representation and base value. The binary system uses only two digits, 0 and 1, and is based on base 2, meaning every position represents a power of 2 . In contrast, the decimal system includes ten digits, 0 through 9, and is based on base 10, which means each position in a number represents a power of 10 . This fundamental difference in the bases allows binary numbers to be more efficient in computing environments, while decimal numbers are more intuitive for human perception.

Understanding the mathematical concept of expanding numbers in a particular base is crucial for conversions between number systems, as it elucidates how each digit contributes to the overall value based on its position. For example, expanding a number like (1101)2 involves expressing it as 1*23 + 1*22 + 0*21 + 1*20, which simplifies to (13)10 . This approach ensures clarity in computing precise values during conversion processes, whether transitioning from base 2 to base 10 or vice versa, and facilitates meticulous computation often requisite in digital systems and computational tasks .

The octal number system played a significant role in older computing systems, particularly those utilizing 12-bit, 24-bit, or 36-bit word sizes, as octal numbers mapped conveniently to these sizes. However, with contemporary computers predominantly using 8-bit, 16-bit, 32-bit, and 64-bit architectures, hexadecimal has become more prevalent due to its alignment with byte structures, which octal does not naturally fit . Despite its reduced prominence today, octal remains relevant in specific domains, like Unix file permissions, but generally demonstrates less practical utility in modern computing environments compared to hexadecimal.

To convert an octal number to a decimal number, each digit of the octal number is multiplied by the power of 8 corresponding to its position, starting from zero for the rightmost digit. The process for (345)8 is as follows: (3 * 8^2) + (4 * 8^1) + (5 * 8^0) = (3 * 64) + (4 * 8) + (5 * 1) = 229 . This method expands the octal number in terms of powers of 8, resulting in its equivalent decimal number.

Direct conversion between octal and hexadecimal systems typically involves intermediary conversions through binary, demonstrating a strategic tack for efficiency. Each octal digit converts easily to a three-bit binary group, while each hexadecimal digit corresponds to a four-bit binary group . By first converting octal to binary and then grouping the binary into sets of four for hexadecimal, or vice versa, conversions become systematic and manageable, reproducing the compact transformations available in computing processes, such as when simplifying memory value representations . This method underscores the efficiency gains in binary-based intermediary steps over potentially cumbersome direct conversions.

The base of a number system significantly impacts its number representation by determining the number of unique digits available and the place value each position holds. Higher bases typically require fewer digits to represent numbers, enhancing their compactness. For instance, in base 2 (binary), '1111' is needed to represent the decimal 15, while in base 16 (hexadecimal), it is simply 'F' . Conversely, base 10 (decimal), which uses ten digits, is more intuitive for most people. Analyzing these principles across bases highlights the relationship between base size and digit brevity, key for applications like computing where efficiency and ease matter .

Problem: Convert the hexadecimal number (1A3F)16 to binary. Solution: Convert each hexadecimal digit to a four-digit binary equivalent. - '1' converts to '0001'. - 'A' converts to '1010'. - '3' converts to '0011'. - 'F' converts to '1111'. Thus, (1A3F)16 converts to (0001 1010 0011 1111)2 . The conversion process involves matching each hexadecimal digit to its binary equivalent using a conversion table, demonstrating how hexadecimal succinctly represents binary values.

The hexadecimal number system is critically important in computer systems due to its compactness and ease of use. It simplifies long binary numbers into fewer digits, facilitating easier reading and debugging of machine-level code. Hexadecimal numbers map closely to the byte structure of computers as each hexadecimal digit represents four binary bits, which aligns well with the byte-oriented architecture of modern computers. This efficiency makes it preferable for representing memory addresses and color codes in programming, unlike octal or decimal systems, which are less efficient in a binary-based digital architecture .

When converting from a decimal number to a binary number, challenges include understanding the concept of repeatedly dividing by 2 and managing remainders. This method involves dividing the decimal number by 2, recording the remainder, and continuing with the quotient until it is zero. The binary number is then constructed from the remainders in reverse order . Addressing these challenges requires practice in the division process and familiarity with the place value significance in binary, especially for larger numbers.

To convert a binary number to its hexadecimal equivalent, group the binary digits into sets of four starting from the right; add zeros to the left if necessary to complete a group. Then, each group of four binary digits, or bits, can be mapped directly to a single hexadecimal digit using a conversion table . This process is beneficial in computing because hexadecimal representation is more compact and easier to read than binary, as it significantly reduces the length of binary strings, which are commonly used in programming and computer architecture .

You might also like