# Number in Binary System

Converts numbers from decimal system to binary.

## About Binary System

The binary system is a way of representing numbers using only two digits: 0 and 1. Unlike the decimal system, which has ten digits (0 to 9), the binary system has only two digits, and we use them repeatedly.

## How to Convert Decimal to Binary

We divide the number by 2 and record the remainders:

- Divide 10 by 2. Get 5, remainder 0.
- Now divide 5 by 2. Get 2, remainder 1.
- Divide 2 by 2. Get 1, remainder 0.
- Divide 1 by 2. Get 0, remainder 1.

Now write down the remainders in reverse order: 1010. This is the binary representation of the number 10.

So, to convert a decimal number to binary, divide it by 2 and record the remainders until the result is 0.