Problem 1165. Convert double scalar to half-precision floating point (IEEE 754r)
Solution Stats
Problem Comments
-
1 Comment
The only thing missing from the test suite are nans,regardless, it's a very good problem. Learned how to extract minus from minus 0, and finally took my time to learn about the controversial denormal floating-points numbers.
Solution Comments
-
1 Comment
This is an elegant and very MATLAB solution--looks easy to vectorize or adapt to single conversion as well.
Problem Recent Solvers5
Suggested Problems
-
The Goldbach Conjecture, Part 2
1731 Solvers
-
Remove the small words from a list of words.
985 Solvers
-
153 Solvers
-
Back to basics 21 - Matrix replicating
1186 Solvers
-
Calculate Euler's phi function
79 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!