{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

OctalConvert

# OctalConvert - 99 3 99 8 12 3 12 8 1 4 1 8 0 1(Reading...

This preview shows pages 1–2. Sign up to view the full content.

Octal Numbering System (Base 8) The octal system is a system based on eight numbers: 0, 1, 2, 3, 4, 5, 6, 7 We convert from decimal to octal by a procedure similar to converting decimal to binary Instead of successively dividing by 2, we successively divide by 8 We follow the same three step Methodology as for Binary conversion o Step 1: Divide the Decimal Dividend by 8, and save the quotient for the next step. Write the remainder on the side. o Step 2: If the quotient in step 1 is 0, stop o Step 3: If the quotient in step 1 is not 0, repeat step 1, using the quotient as the new dividend. o Once the quotient is 0 obtain the Octal number by reading the remainders in the inverse order in which they are produced. Example: convert 795 10 to Octal Calculation Quotient Remainder 795 / 8

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 99 3 99 / 8 12 3 12 / 8 1 4 1 / 8 0 1 (Reading upwards) 795 = 1433 8 Note: If you do not see a subscript the base is assumed to be 10 (Decimal) Checking our answer: 1433 8 = (1*8^3) + (4*8^2) + (3*8^1) + (3*8^0) = 512 + 256 + 24 + 3 = 795 Converting Octal to Decimal: As in our check above we use the sums of the powers of eight. Example: 726 8 = 7(the placeholder)*8(the base)^2(the power of the base) = 7*64 = 448 + 2*8^1 = 2*8 = 16 + 6*8^0 = 6*1 = 6 Decimal Value : 470 (An easy way to calculate the power of the base for a particular placeholder is to start at the rightmost digit of the number to be converted - call that power 0, add 1 for every position moving to the left. In our example the highest power is 2 for this 3 digit base 8 number.)...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

OctalConvert - 99 3 99 8 12 3 12 8 1 4 1 8 0 1(Reading...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online