0b0111
0b0111 is a binary number. In the binary numeral system, which is base-2, digits can only be 0 or 1. The prefix "0b" is a common convention used in many programming languages and contexts to indicate that the following sequence of digits represents a binary number.
The binary number 0b0111 can be converted to its decimal (base-10) equivalent. To do this, we assign
(0 * 2^3) + (1 * 2^2) + (1 * 2^1) + (1 * 2^0)
= (0 * 8) + (1 * 4) + (1 * 2) + (1 * 1)
= 7
Therefore, the binary number 0b0111 is equal to the decimal number 7. This representation is fundamental in