189k views
3 votes
How do I convert 38 to base two?

User Dharmatech
by
8.0k points

1 Answer

3 votes

Answer:

100110

Explanation:

You keep dividing by 2 until you get to 0 and keep track of the remainder.

There will either be a remainder of 1, or no remainder. When there is no remainder, write 0.

38 ÷ 2 = 19 r 0

19 ÷ 2 = 9 r 1

9 ÷ 2 = 4 r 1

4 ÷ 2 = 2 r 0

2 ÷ 2 = 1 r 0

1 ÷ 2 = 0 r 1

Answer is read from bottom to top, so 38 converted to base two is 100110.

User StefMa
by
7.2k points