The binary number system uses only two digits, 0 and 1, to represent all values. To convert a decimal number, such as 28, to binary, we can repeatedly divide the decimal number by 2 and keep track of the remainders. The binary representation of 28 is 11100.
Here's how the conversion works:
28 ÷ 2 = 14 with a remainder of 0
14 ÷ 2 = 7 with a remainder of 0
7 ÷ 2 = 3 with a remainder of 1
3 ÷ 2 = 1 with a remainder of 1
1 ÷ 2 = 0 with a remainder of 1
So, the binary representation of 28 is 11100, with the rightmost digit being the least significant bit.