Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How will you convert this number: 7562.45 to octal?

1938.257 to hexadecimal 175.175 to binary 345.32 to octal

I know how to convert them but if there are point or decimal involved, I'm lost.

7 Answers

Relevance
  • Anonymous
    10 years ago
    Favorite Answer

    Hi,

    Let's tackle this number first on the left side of the decimal, then the decimal places later.

    To convert integer decimals to octal, divide the original number by the largest possible power of 8 and successively divide the remainders by successively smaller powers of 8 until the power is 1.

    Thus we get the following with the Integer 7562

    7562 / 8^4 = 1 :::: It equals 1 because 8^4 can only go into 7562 once

    Therefore, 7562 - ((8^4) x 1))

    => 7562 - 4096 = 3466

    Now 3466 / 8 ^ 3 = 6 :::: because 8^3 goes into 3466 six times

    Therefore, 3466 - ((8^3) x 6)

    => 3466 - 3072 = 394

    Now 394 / 8^2 = 6 :::: because 8^2 goes into 394 six times

    Therefore, 394 / ((8^2) x 6)

    => 394 - 384 = 10

    Now 10 / 8^1 = 1 :::: because 8^1 goes into 10 once only

    Therefore, 10 / ((8^1) x 1)

    => 10 - 8 = 2

    Now 2 / 8^0 = 2 :::: because 8^0 goes into 2 twice

    Therefore, 2 / ((8^0) x 2)

    => 2-2 = 0

    So if we start from the beginning:

    The first attempt to divide highest power into 7562 yielded us a 1.

    Next it yielded a 6

    Then another 6

    Then a 1

    Finally a 2

    Thus the octal for 7562 = 16612

    =====================

    Now for the Decimal Places

    =====================

    To convert a decimal fraction to octal, multiply by 8; the integer part of the result is the first digit of the octal fraction. Repeat the process with the fractional part of the result, until it is null or within acceptable error bounds.

    Yukky stuff eh :)~

    Let's do it!

    0.45 x 8 = 3 + 0.6 :::: so the first yield is a 3

    We take the remaining decimal now,

    0.6 x 8 = 4 + 0.8 :::: so the next yeild is a 4

    We take the remaining decimal now,

    0.8 x 8 = 6 + 0.4 :::: so the next yield is a 6

    We take the remaining decimal now,

    0.4 x 8 = 3 + 0.2 :::: so next yield is a 3

    OK at this point if you continue you will notice a recurring theme. If we multiple 0.2 x 8 that will leave a decimal remainder 0.6, which multiplied by 8 will leave a decimal remainder of 0.8 etcetera.

    There is no point continuing so the octal of 0.45 = 0.3463

    Thus the octal of 7562.45 = 16612.3463

    ===========================

    Let's do another decimal that ends

    obviously to illustrate why you stop

    when its obvious you have reached

    limit of the decimal octal.

    ===========================

    0.1640625

    So, as before multiple by 8 to yield a answer and continue with remaining decimals till satisfied.

    Thus,

    0.1640625 x 8 = 1 + 0.3125 :::: first yield = 1

    0.3125 x 8 = 2 + 0.5 :::: second yield = 2

    0.5 x 8 = 4 + 0.0 :::: third yield = 4

    Thus 0.1640625 = 0.124 octal

    If only they were all that obvious eh :)

    OK, I hope this helps you understand how to handle the Integer and Decimals when converting to a Octal number.

    Hang in there, it gets easier the more you practice.

    Regards,

    Javalad

    Source(s): I swiped that last example from Wikipedia ~ you may find this article helpful too: http://en.wikipedia.org/wiki/Octal
  • nicot
    Lv 4
    4 years ago

    Decimal To Octal Converter

  • 4 years ago

    Octal Conversion

  • Mary
    Lv 4
    5 years ago

    For the best answers, search on this site https://shorturl.im/axxqN

    There are a couple of possibilities. One is to divide the decimal number repeatedly by 8. The remainder after each division is the rightmost remaining digit of the octal number. The next division is always performed on the quotient of the previous division. When the quotient is zero, the remainder is the leftmost digit of the answer. Example: convert 690 to octal (the answer is 1262) 690/8 = 86 with remainder 2, so the rightmost position is 2. 86/8 = 10 with remainder 6, so the next position to the left is 6. 10/8 = 1 with remainder 2, so the next position to the left is 2. 1/8 = 0 with remainder 1 so the final position to the left is 1. Another option, if you are a rather mature ITgirl, is to get out your IBM green card. By playing around a bit with the information on the card, you could potentially short-circuit this process, since hexidecimal and octal are cousins.

  • How do you think about the answers? You can sign in to vote the answer.
  • 10 years ago

    One way to do it is to multiply them by 16^3 (which is 100 in hexadecimal) and then convert them into hexadecimal and divide them by 100 (as in just put a dot after the second digit)

    For Octal it's the same, just keep multiplying by 8, convert it into octal (ignoring any remaining fractions) and use that as the next digit after the dot...

  • 7 years ago

    (7562.45) to octal

    is very easy to solve see

    7*8^3 + 5*8^2 + 6*8^1 + 2*8^0 + 4*8^-1 + 5*8^-2

    just put power in negative sign after point(.) & calculate it

    regards

    harry

  • Anonymous
    5 years ago

    I don't consider that's true

Still have questions? Get your answers by asking now.