DEV Community

KIRUBAGARAN .K
KIRUBAGARAN .K

Posted on

The basics of number systems

Today I learned number systems.

Binary Number System (Base 2)
Uses two digits: 0 and 1
Every binary digit is called a bit
Widely used in computers and digital systems because machines understand only 0 (off) and 1 (on).

Decimal Number System (Base 10)
Uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
This is the system we use in our daily life for counting and calculations.

Hexadecimal Number System (Base 16)
Uses 16 symbols 0–9 and A–F

A = 10, B = 11, C = 12, D = 13, E = 14, F = 15

Very common in programming and memory addressing because it is compact and easy to convert from binary.

Octal Number System (Base 8)
Uses eight digits: 0–7
Each digit represents a power of 8
Sometimes used in computing as a shorter way to represent binary numbers.

Top comments (0)