Microcomputer Systems:Converting Decimal Numbers into Binary and Converting Binary Numbers into Hexadecimal

Converting Decimal Numbers into Binary

To convert a decimal number into binary, divide the number repeatedly by 2 and take the remainders. The first remainder is the least significant digit (LSD), and the last remainder is the most significant digit (MSD).

Microcomputer Systems-0007

Microcomputer Systems-0008

Converting Binary Numbers into Hexadecimal

To convert a binary number into hexadecimal, arrange the number in groups of four and find the hexadecimal equivalent of each group. If the number cannot be divided exactly into groups of four, insert zeros to the left of the number as needed so the number of digits are divisible by four.

Microcomputer Systems-0009

Microcomputer Systems-0010

Leave a comment

Your email address will not be published. Required fields are marked *