A comprehensive guide to number systems, their types, conversions, and importance in computing.
472
in decimal represents (4 × 10²) + (7 × 10¹) + (2 × 10⁰) = 472
.1011
in binary represents (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = 11
in decimal.57
in octal represents (5 × 8¹) + (7 × 8⁰) = 47
in decimal.2F
in hexadecimal represents (2 × 16¹) + (F × 16⁰) = 47
in decimal.2
.0
.13
to binary:
2^n
(where n
is its position from right, starting at 0
), then sum the results.
Example: Convert 1101
to decimal:
2F
to binary:
57
to binary: