# Decimal to Binary

This converter converts the given decimal number to binary.

## Decimal to Binary

Decimal to binary conversion is the process of converting a decimal (base-10) number into its binary (base-2) representation.

In the decimal system, numbers are expressed using the digits 0 through 9, while in the binary system, only 0 and 1 are used.

The decimal to binary conversion involves repeatedly dividing the decimal number by 2 and recording the remainders until the quotient becomes 0.

## Stesp to convert decimal to binary

Here are the steps to convert a decimal number to binary:

- Divide the decimal number by 2.
- Record the remainder (it will be either 0 or 1).
- Divide the quotient obtained in step 1 by 2.
- Record the remainder again.
- Repeat steps 3 and 4 until the quotient becomes 0.
- The binary equivalent is the sequence of remainders read in reverse order.

## Example

Let's take an example to illustrate the process. Suppose we want to convert the decimal number 13 to binary:

- 13 ÷ 2 = 6 with a remainder of 1 (record 1)
- 6 ÷ 2 = 3 with a remainder of 0 (record 0)
- 3 ÷ 2 = 1 with a remainder of 1 (record 1)
- 1 ÷ 2 = 0 with a remainder of 1 (record 1)

Reading the remainders in reverse order gives us the binary equivalent: 1101.

Therefore,**13**in decimal is equal to

**1101**in binary.