Binary Number System

This section practices the basics of converting between binary and decimal.

How to use an exercise:

Exercise 1. Convert Binary to Decimal

1. Generate a random binary number:

2. Please convert it to decimal: -
3. Now check your answer:

-

4. Show the solution:

-

Exercise 2. Convert Decimal to Binary - integer

1. Generate a random decimal number:

2. Please convert it to binary: -
3. Now check your answer:

-

4. Show the solution:

-

Exercise 3. Convert Decimal to Binary - fraction

1. Generate a random decimal fraction:

2. Please convert it to binary (At most 6 bits
after the binary point. Drop additional bits.
Do not round up.):
- (write it as 0.xxxx)
3. Now check your answer:

-

4. Show the solution:

-

 

© 2022 Bin Peng
Bug reports and comments are welcome: crystal dot peng at park dot edu

Last Update:
Created: January 17, 2018