Decimal to Octal Conversion

πŸš€ Add to Chrome – It’s Free - YouTube Summarizer

Category: Math Tutorial

Tags: conversiondecimalhomeworkmathoctal

Entities: decimal numberLSBMSBoctal number system

Building WordCloud ...

Summary

    Decimal to Octal Conversion
    • To convert a decimal number to octal, divide the integer part by 8 and multiply the fractional part by 8, as the base of the octal system is 8.
    • Example 1: For the decimal number 112, divide by 8 to get an octal equivalent of 160.
    • Example 2: For the decimal number 25.625, the octal equivalent is 31.50.
    • Ignore leading or trailing zeros in the octal representation.
    Practice Problems
    • Homework Problem 1: Convert the decimal number 248 to octal.
    • Homework Problem 2: Convert the decimal number 82.250 to octal.
    • Share your answers in the comments section.

    Transcript

    00:00

    in the last presentation we completed decimal to Binary conversion the next conversion is decimal to octal for decimal to octal conversion we have to divide integer part by 8 and multiply

    00:16

    fractional part by eight we are multiplying and dividing by eight because base in case of octal number system is 8 the base or redex R is equal to 8 in case of octal number system so we have to divide the integer part by

    00:32

    eight and multiply the fractional part by eight I will explain this conversion by the help of two examples in the first example I will not include the fractional part we will include fractional part in second example so let's start with example number one the decimal number is 1 1 2 this is in

    00:51

    decimal and we want octal equivalent of 1 2 we have to divide 112 by 8 because we have to divide the

    01:08

    integer part by 8 and when you divide 112 by 8 the quotient is 14 and the remainder is zero we will again divide 14 by 8 and we will have quotient as one and remainder is

    01:25

    six 1 / 8 quotient is 0o and remainder is 1 and we will stop here and this one here is MSB and this zero here is LSP so the number is 1 6 0 we have to start from

    01:42

    bottom and we have to go up right so 16 0 is the octal number which represents 112 in decimal 16 0 this is the answer in second example the decimal number is

    01:58

    25. 625 this is in decimal and we want the octal equivalent of this number and if you remember the last presentation this was the example for decimal to Binary conversion I'm using the same decimal

    02:16

    number for decimal to octal conversion we will divide the integer part this is the integer part by 8 and we will have quotient equal to 3 8 3 times will give us 24 so the remainder

    02:32

    is 1 I will again divide this 3 by 8 quotient is zero and remainder is three this three here is MSB and this one here is LSB so the integer part for the octal number is

    02:48

    31 right now we have to find out the fractional part for the octal number and we have to multiply this fractional part by8 so we will multiply Z 0.625 by 8 and this will give us

    03:06

    5. we will keep five we will keep this five and after this we are left with 0.

    and we will again multiply this by 8 and the result is 0. so we have 1 Z and in the same way if

    03:24

    you repeat the process you have bunch of zeros so we will stop here and the fractional part for octal number is 5 0 so the octal equivalent of 25.6 to5 is 31.50 this is the answer and if you

    03:42

    divide this zero Again by 8 you will have remainder as zero and if you divide this zero again you will have remainder as zero so we are getting bunch of zeros before three and we are getting bunch of zeros after five the

    03:57

    value will remain the same so we don't usually write the zeros we will settle with 31.5 now I have two homework problems for you homework problems in the first homework problem the decimal number is

    04:16

    248 this is in decimal and you have to find out the octal equivalent for 2048 in second problem the decimal number is 82. 25 0 this is in decimal and you have

    04:32

    to find out octal equivalent of this number so these are the two problems for homework once you have your answer post it in comment section this is all for this presentation see you in the next one