How To Convert Between Binary, Decimal & Hexadecimal

Binary: base-2 numeric system which uses two digits: 0, 1

Decimal: base-10 numeric system which use ten digits: 0–9

Hexadecimal: base-16 numeric system which uses sixteen digits: 0–9, A-F

Binary → Decimal

As binary is base-2, write powers of 2 (starting from zero) against the binary…