This section includes exercises on 32-bit IEEE 754 floating-point representation and its conversion with decimal.
How to use an exercise:
Reference: IEEE 754 32-bit -> decimal.
1. Generate a random 32-bit IEEE 754 number: | ||
2. Please convert it to decimal: (provide a final value or express it as 2^x + ... + 2^y) |
- | |
3. Now check your work: | - |
|
4. Show the solution: | - |
|
Reference: decimal -> IEEE 754 32-bit and biased representation (for biased exponent).
1. Generate a random decimal number: | ||
2. Please convert it to 32-bit IEEE 754: (three sections: 1-bit sign, 8-bit exp, 23 bits) |
- | |
3. Now check your work: | - |
|
4. Show the solution: | - |
|
© 2022
Bin Peng
Bug reports and comments are welcome: crystal dot peng at park dot edu
Last Update:
December 8, 2022
Created: August 27, 2019