Number System conversions
Sep 13, 2014
5.36k likes | 11.61k Views
Number System conversions. Number Systems. There are four systems of arithmetic which are often used in digital electronics. Decimal Number System Binary Number System Octal Number System Hexa Decimal System. Decimal Number system.
Share Presentation
- decimal number
- octal number
Presentation Transcript
Number Systems • There are four systems of arithmetic which are often used in digital electronics. • Decimal Number System • Binary Number System • Octal Number System • Hexa Decimal System
Decimal Number system • Decimal number system contains 10 digits: 0,1,2,3,4,5,6,7,8,9; and that is why its base or radix is 10. • Here radix means total number of digits used in any system.
Decimal Number System • The decimal number system is a positional number system. • Example: • 5 6 2 1 1 X 100 = 1 • 103 102 101 100 2 X 101 = 20 • 6 X 102 = 600 • 5 X 103 = 5000
Binary Number System • The binary number system is also a positional numbering system. • Instead of using ten digits, 0 - 9, the binary system uses only two digits, 0 and 1.
Binary Number System • The binary number system is also known as base 2. The values of the positions are calculated by taking 2 to some power. • Why is the base 2 for binary numbers? • Because we use 2 digits, the digits 0 and 1.
Example • Binary number system: 11001010 11111111 00000000
Octal Number System • Also known as the Base 8 System • Uses digits 0 - 7 • Readily converts to binary • Groups of three (binary) digits can be used to represent each octal digit
Hexadecimal Number System • Base 16 system • Uses digits 0-9 & letters A,B,C,D,E,F • Groups of four bitsrepresent eachbase 16 digit
Binary Numbering Scale
Significant Digits Binary: 11101101 Most significant digit Least significant digit Hexadecimal: 1D63A7A Most significant digit Least significant digit
Converting From Decimal to Binary • Make a list of the binary place values up to the number being converted. • Perform successive divisions by 2, placing the remainder of 0 or 1 in each of the positions from right to left. • Continue until the quotient is zero. • Example: 4210 • 25 24 23 22 21 20 • 32 16 8 4 2 1 • 101010
DECIMAL TO BINARY CONVERTION • There are two methods to convert it:- • Revese of Binary-To-Digital Method • Decimal number write as the sum of square • 0 & 1 is write on the byte Example 1: Convert 4510 to the binary value Solve = 32 + 8 + 4 + 1 = 0 0 = 0 1 1 0 = 1 1 2
3 1 25 12 6 2 2 2 2 2 • Repeat division method • The numbers is divide by 2. • Balance for the question is written until the last answer. Example : convert 2510 to binary 2510 = ?2 Solve = = 12 balance 1 LSB = 6 balance 0 = 3 balance 0 = 1 balance 1 = 0 balance 1 MSB . . . Answer = 110012
Decimal to Binary Conversion • The easiest way to convert a decimal number to its binary equivalent is to use the Division Algorithm • This method repeatedly divides a decimal number by 2 and records the quotient and remainder • The remainder digits (a sequence of zeros and ones) form the binary equivalent in least significant to most significant digit sequence
Division Algorithm Convert 67 to its binary equivalent: 6710 = x2 Step 1: 67 / 2 = 33 R 1Divide 67 by 2. Record quotient in next row Step 2: 33 / 2 = 16 R 1 Again divide by 2; record quotient in next row Step 3: 16 / 2 = 8 R 0 Repeat again Step 4: 8 / 2 = 4 R 0 Repeat again Step 5: 4 / 2 = 2 R 0 Repeat again Step 6: 2 / 2 = 1 R 0 Repeat again Step 7: 1 / 2 = 0 R 1 STOP when quotient equals 0 1 0 0 0 0 1 12
Decimal to binary (fractional) • Examples: • Convert the decimal number (12.0625)10 into binary number. Solution: Fractional part: 0.0625 x 2 = 0.1250 0 0.1250 x 2 = 0.2500 0 0.2500 x 2 = 0.500 0 0.500 x 2 = 1.000 1 (12.0625)10 = (1100.0001)2
Decimal to Octal Conversion Examples: • (315)10 = (473)8
5 359 44 8 8 8 DECIMAL TO OCTAL CONVERTION • Convert from decimal to octal by using the repeated division method used for decimal to binary conversion. • Divide the decimal number by 8 • The first remainder is the LSB and the last is the MSB. Example : convert 35910 to Decimal Value 35910 = ?8 Solve = = 44 balance 7 LSB = 5 balance 4 = 0 balance 5 MSB . . . Answer = 5478
Decimal to Octal Conversion Convert 42710 to its octal equivalent: 427 / 8 = 53 R3 Divide by 8; R is LSD 53 / 8 = 6 R5 Divide Q by 8; R is next digit 6 / 8 = 0 R6 Repeat until Q = 0 6538
Decimal to Octal (fractional) • Examples: • Convert the decimal number (225.225)10 into octal number. Solution: Fractional part: 0.225 x 8 = 1.800 1 0.800 x 8 = 6.400 6 0.400 x 8 = 3.200 3 0.200 x 8 = 1.600 1 0.600 x 8 = 4.800 4 (225.225)10 = (341.16314)8
Decimal to Hexadecimal Conversion • Examples • (315)10 = (13B)16
Decimal to Hexadecimal Conversion Convert 83010 to its hexadecimal equivalent: 830 / 16 = 51 R14 51 / 16 = 3 R3 3 / 16 = 0 R3 = E in Hex 33E16
Decimal to Hexadecimal (fractional) • Examples: • Convert the decimal number (225.225)10 into hexadecimal number. Solution: Fractional part: 0.225 x 16 = 3.600 3 0.600 x 16 = 9.600 9 (225.225)10 = (E1.39)16
Converting from Binary to Decimal • Example of a binary number and the values of the positions: • 1001101 • 26 25 24 23 22 21 20
Converting from Binary to Decimal • 1001101 1 X 20 = 1 • 26 25 24 23 22 21 20 0 X 21 = 0 • 1 X 22 = 4 • 20 = 1 24 = 16 1 X 23 = 8 • 21 = 225 = 320 X 24 = 0 • 22 = 426 = 640 X 25 = 0 • 23 = 81 X 26 = 64 7710
Binary to Decimal Conversion • The easiest method for converting a binary number to its decimal equivalent is to use the Multiplication Algorithm • Multiply the binary digits by increasing powers of two, starting from the right • Then, to find the decimal number equivalent, sum those products
Multiplication Algorithm Convert (10101101)2 to its decimal equivalent: Binary 1 0 1 0 1 1 0 1 Positional Values x x x x x x x x 27 26 25 24 23 22 21 20 128 + 32 + 8 + 4 + 1 Products 17310
Converting from Binary to Decimal Practice conversions: BinaryDecimal 11101 1010101 100111
Converting From Decimal to Binary Practice conversions: DecimalBinary 59 82 175
BINARY TO OCTAL CONVERSION • Can be converted by grouping the binary bit in group of three starting from LSB • Octal is a base-8 system and equal to two the power of three, so a digit in Octal is equal to three digit in binary system.
binary to hexadecimal system • Group the digits of the binary number by four starting from the right. • Replace each group of four digits by an equivalent hexadecimal digit. Convert 101101012 into a hexadecimal number. 1011 01012 = B516 B 5
Exercise • Convert 1010002 into a hexadecimal number. • Convert 111011112 into a hexadecimal number.
Octal to Decimal Conversion Convert 6538 to its decimal equivalent: Octal Digits 6 5 3 x x x Positional Values 82 81 80 384 + 40 + 3 Products 42710
OCTAL TO BINARY CONVERTION • Convert from octal to binary by converting each octal digit to a three bit binary equivalent • Convert from binary to octal by grouping bits in threes starting with the LSB. • Each group is then converted to the octal equivalent • Leading zeros can be added to the left of the MSB to fill out the last group.
Octal to Binary Conversion Each octal number converts to 3 binary digits To convert 6538 to binary, just substitute code: 6 5 3 110 101 011
Hexadecimal to Decimal Conversion Convert 3B4F16 to its decimal equivalent: Hex Digits 3 B 4 F x x x x Positional Values 163 162 161 160 12288 +2816 +64 +15 Products 15,18310
HEXADECIMAL TO binary • To convert a hexadecimal to binary number, convert each hexadecimal digit to its 4 bit equivalent using the hexa number. • Example: (23.AB)16 = ()2 • Solution: (23.AB)16 = 2 3 . A B • 0010 0011 1010 1011 • (23.AB)16 = (00100011.10101011)2
HEXADECIMAL TO OCTAL CONVERTION • There is two ways to convert it:- • Hexadecimal – Decimal – Octal • Hexadecimal – Binary – Octal • Hexadecimal – Decimal – Octal
Hexadecimal – Binary – Octal
Hexadecimal Number System BinaryDecimalHexadecimalBinaryDecimalHex 0 0 0 1010 10 A 1 1 1 1011 11 B 10 2 2 1100 12 C 11 3 3 1101 13 D 100 4 4 1110 14 E 101 5 5 1111 15 F 110 6 6 111 7 7 1000 8 8 1001 9 9
Exercise • Practice conversions: BinaryDecimal Octal Hex 01111101 1110101 1101010111 • Practice conversions: DecimalBinaryOctalHex 72 92 185 • Convert 110111112 into a hexadecimal number.
Answer Exercise • Practice conversions: BinaryDecimal Octal Hex 01111101 125(10) 175(8) 7D(16) 1110101 117(10) 165(8) 75(16) 1101010111 855(10) 1527(8) 357(16) • Practice conversions: DecimalBinaryOctalHex 72 1001000(2) 110(8) 48(16) 92 1011100(2) 134(8) 5C(16) 185 10111001(2) 271(8) B9(16) • Convert 110111112 into a hexadecimal number. 11011111(2) = DF(16)
Any Questions ???????? End of Session End of Session
- More by User
Number System
Number System. Prepared By Dr. Anu Gokhale. Decimal, Binary, Octal, and Hex. Decimal is the number system that we use Binary is a number system that computers use
530 views • 17 slides
NUMBER CONVERSIONS
NUMBER CONVERSIONS. Definitions. Natural Numbers – the number 0 and any number obtained by repeatedly adding 1 to it. Base – Foundational value of a number system, dictating the number of digits and the value of digit positions. Also known as the “radix”.
334 views • 10 slides
Number System conversions. Number Systems. The system used to count discrete units is called number system. There are four systems of arithmetic which are often used in digital electronics. Decimal Number System Binary Number System Octal Number System Hexa Decimal System.
1.3k views • 46 slides
Number System Conversions
Number System Conversions. Lecture L2.2 Section 2.3. Number System Conversions. Hex, Binary, and Octal to Decimal Binary Hex Binary Octal Hex Octal Decimal to Hex, Octal, and Binary. Hex to Decimal. 8 7 C 9 x 16 128 + 7 135 x 16 2,160 + 12
351 views • 12 slides
The Metric System & Conversions
The Metric System & Conversions. The Metric System. Most countries use the metric system in everyday life. The scientific community throughout the world uses the metric system, thereby providing an easy flow of consistent measurement and information . Base Units & Derived Units.
321 views • 9 slides
Number system
Number system. Rashedul Hasan. Commonly used Number System . Decimal Number System. The decimal numeral system has ten as its base. It is the most widely used numeral system, perhaps because humans have ten digits over both hands.
1.19k views • 56 slides
1.39k views • 46 slides
Number System. Number Systems. Important Number systems Decimal Binary Hexadecimal. Decimal system. Decimal Digits Units. Binary Number System. Binary Digits Units Bits Nibble Byte Word KB,MB,GB,TB Conversion Decimal to Binary Binary to Decimal . Hexadecimal.
827 views • 8 slides
Number Conversions
Number Conversions. Lecture L3.4. Number Conversions. ASCII Number String to Binary Conversion Binary Number to ASCII String Conversion. base. Number : Clear binary number buffer ( dnum ) Loop : get next digit While : digit is valid multiply dnum by base and add digit value
350 views • 16 slides
Number System. Number Systems. Important Number systems Decimal Binary Hexadecimal. Decimal system. Decimal Digits Units. Binary Number System. Binary Digits Units Bits Nibble Byte Word KB,MB,GB,TB Conversion Decimal to Binary Binary to Decimal. Hexadecimal. Hexadecimal Digits
381 views • 7 slides
Number System. ITE102 – Computer Programming (C++). Topics. 1-1 Introduction to Binary 1-2 Understanding Number System 1-3 Conversion of Number System. Learning Objects. After completing this module that student will be able to : Distinguish the different number systems
2.64k views • 118 slides
NUMBER SYSTEM
NUMBER SYSTEM. How many zeros are there at the end of the product? 10*20*30*40*50*60*70*80*90*100 (a) 10 (b) 11 (c) 14 (d) None of these. (d)12. How many numbers of zeroes are there in 1076! (a) 265 (b) 266 (c) 267
1.41k views • 77 slides
19.2 Conversions between Number System
19.2 Conversions between Number System. Conversions between Denary, Binary, Octal and Hexadecimal Integers. From Denary Integers to Binary Integers. Example 19.7. Convert 27 10 into a binary integer. Solution. i.e. 27 10 = 11011 2.
592 views • 28 slides
NUMBER SYSTEM. Compiled by : S. Agarwal, Lecturer & Systems Incharge St. Xavier’s Computer Centre, St. Xavier’s College Kolkata. March-2003. Introduction
1.16k views • 67 slides
A numeral system (or system of numeration) is a writing system for expressing numbers; that is, a mathematical notation for representing numbers of a given set, using digits or other symbols in a consistent manner.
241 views • 13 slides
Number System. Non-positional Number Systems. Positional Number Systems. Number System. Non-positional Number Systems.
4.99k views • 21 slides
Number System. What’s the most natural way to count?. Number System. What’s the most natural way to count? Use your hands. ( or maybe feet too! ). Number System. In ancient times, people use notches What’s the problem?. Number System.
323 views • 20 slides
NUMBER SYSTEM. By, T.Kalaiselvi, AP(SLG-I) / CSE. Chapter 2 : Number System. 2.1 Decimal, Binary, Octal and Hexadecimal Numbers 2.2 Relation between binary number system with other number system 2.3 Representation of integer, character and floating point numbers in binary
745 views • 61 slides
888 views • 67 slides
IMAGES
VIDEO
COMMENTS
This document discusses different number systems including non-positional, positional, decimal, binary, octal, and hexadecimal systems. It provides examples of how to convert numbers between these bases using direct conversion methods or shortcuts.
Introduction to Number System. For more notes and topics visit: www.eITnotes.com. Number System. When we type some letters or words, the computer translates them in binary numbers as computers can understand only binary numbers. 1.38k views • 41 slides
Chapter I Number System and Codes • introduce different types of number system • explain binary arithmetic • explicate different types of syntax
To convert a binary number to octal: 1) Separate the binary number into groups of 3 digits from the right. 2) Convert each 3-digit group to its octal equivalent. 3) The octal number is the combination of each converted group from right to left. Read less
Number Systems • There are four systems of arithmetic which are often used in digital electronics. • Decimal Number System • Binary Number System • Octal Number System • Hexa Decimal System. Decimal Number system • Decimal number system contains 10 digits: 0,1,2,3,4,5,6,7,8,9; and that is why its base or radix is 10.
Number systems are ways to represent, organize, and manipulate numbers. Decimal, binary, octal, and hexadecimal are commonly used number systems. Conversion between number systems involves changing the representation of a number from one base to another.