112k views
4 votes
Convert from binary to octal:
a. 110010
b. 11111.01101

User Tim Hysniu
by
7.3k points

1 Answer

3 votes

Final answer:

Binary to octal conversion is done by grouping binary digits in sets of three, translating each group into an octal digit. For the given examples, 110010 converts to octal 312, and 11111.01101 converts to octal 37.32.

Step-by-step explanation:

To convert from binary to octal, you group the binary digits in sets of three, starting from the right for whole numbers and from the decimal point for fractional parts. Each group of three binary digits corresponds to one octal digit. If the number of binary digits is not a multiple of three, you can add extra zeros at the beginning of the entire number or at the end of the fractional part.

For the binary number 110010, group the digits as follows: 011 001 0. These groups correspond to the octal digits 3, 1, and 2. So, the octal equivalent is 312.

For the binary number 11111.01101, group the digits for the whole number part and the fractional part separately: 011 111 . 011 010. Add an extra zero to complete the last group in the fractional part. These groups correspond to the octal digits 3, 7 for the whole number part, and 3, 2 for the fractional part. So, the octal equivalent is 37.32.

User Ean
by
8.4k points