Use this calculator to convert numbers between different bases. Enter your number, select the input and output bases, and click Convert.
Converting numbers between different bases is a fundamental operation in computer science and mathematics. Here's a comprehensive guide on how to perform these conversions:
To convert a number from base \(b\) to decimal (base 10), use the following formula:
\[ (d_n d_{n-1} ... d_1 d_0)_b = d_n \times b^n + d_{n-1} \times b^{n-1} + ... + d_1 \times b^1 + d_0 \times b^0 \]Where:
Let's convert the binary number 1010 (base 2) to hexadecimal (base 16).
Binary 1010 to decimal:
\[ 1010_2 = 1 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 0 \times 2^0 = 8 + 0 + 2 + 0 = 10_{10} \]To convert 10 to hexadecimal, divide by 16 repeatedly and read the remainders from bottom to top:
10 ÷ 16 = 0 remainder 10 (A in hexadecimal)
Therefore, 10 in hexadecimal is A.
1010 (base 2) = A (base 16)
This diagram illustrates the process of converting the binary number 1010 to its hexadecimal equivalent A.