answersLogoWhite

0

Repeatedly divide the decimal value by 2 and take the remainder (which can only be 0 or 1) until the decimal value is 0. The first remainder is the low-order bit, thus we work through the bits in increasing order of magnitude.

For example, decimal value 50:

50 / 2 = 25 r 0

25 / 2 = 12 r 1

12 / 2 = 6 r 0

6 / 2 = 3 r 0

3 / 2 = 1 r 1

1 / 2 = 0 r 1

Thus 50 decimal is 110010 in binary.

User Avatar

Wiki User

8y ago

What else can I help you with?