www hndit com Data Representation and Organization Lecture

  • Slides: 6
Download presentation
www. hndit. com Data Representation and Organization Lecture 2: Number Systems Decimal and Octal

www. hndit. com Data Representation and Organization Lecture 2: Number Systems Decimal and Octal conversions 6/8/2021

www. hndit. com Course Objectives • At the end of the module students should

www. hndit. com Course Objectives • At the end of the module students should be able to • Convert Decimal number to Octal number • Convert Octal number to Decimal • Convert Decimal fraction to Octal • Convert Octal fraction to Decimal 6/8/2021

www. hndit. com Number Base Conversion: Decimal to Octal • Divide the number by

www. hndit. com Number Base Conversion: Decimal to Octal • Divide the number by 8 • remainder is a number in the range 0 to 7. example, 462910 becomes 4629/8= 578 r=5 578/8= 72 r=2 72/8= 9 r=0 9/8 = 1 r=1 1/8 = 0 r=1 462910 =110258 6/8/2021 3

www. hndit. com Conversion of Fractional Decimals to Octal Pair Work: Group, workout and

www. hndit. com Conversion of Fractional Decimals to Octal Pair Work: Group, workout and Present Convert Following Decimals to Octal Ex 1: 0. 25 Ex 2: 0. 34 Ex 3: 0. 44

Octal to Decimal www. hndit. com • Take the left-most digit, • Multiply it

Octal to Decimal www. hndit. com • Take the left-most digit, • Multiply it by eight and add it to the digit on its right. • Then, multiply this subtotal by eight and add it to the next digit on its right. • The process ends when the left-most digit has been added to the subtotal. For example, 64378 becomes 6 4 3 7 48 52 416 419 3352 3359 Therefore, 64378 = 335910 6/8/2021 5

Conversion of Fractional Octal to Decimals Pair Work: Group, workout and Present Convert Following

Conversion of Fractional Octal to Decimals Pair Work: Group, workout and Present Convert Following Octal to Decimals Ex 1: 0. 15 Ex 2: 0. 24 Ex 3: 0. 46 www. hndit. com