Posts

Showing posts with the label radix-8

Number System Binary to Octal Conversion

Image
It is a C program which executes number system conversion from binary to octal numbers. Binary to Octal - algorithm set octal [] Read binary_bits form user reverse(binary_bits) while not EOF(binary_bits) read 3-bits from binary_bits convert 3-bits to decimal append decimal to octal end print reverse(octal) Binary to Octal conversion example The given binary number is 01101010010 and converts it into octal number binary = 01101010010, octal = ?, split binary 3 bits group from right to left direction and carried out binary to decimal conversion on each 3 bits group binary = 01 | 101 | 010 | 010 octal = 1 5 2 2 if...

Convert Octal to Binary

Image
The C program carry out number system conversion from a octal value (base-8) to binary numbers (base-2) is called octal to binary conversion. A octal number is represented by binary 3 bits. Octal number system The octal number system has the following unique digits. {0, 1, 2, 3, 4, 5, 6, 7} As the octal number system has the 8 unique digits, it is called base 8 or radix 8 number system. Each octal digit can be represented by binary 3 bits. Binary number system The Binary number system has the following unique digits. {0, 1} As the binary number system has the 2 unique digits, it is called base 2 or radix 2 number system. The computer can only understand this number system and is operated by this binary number system, therefore it accepts data,instruction and everything in binary numbers format. Octal to Binary conversion example ...