Problem 1165. Convert double scalar to half-precision floating point (IEEE 754r)
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 2 Oct 2020
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
Tom Holz
on 8 Jan 2013
This is an elegant and very MATLAB solution--looks easy to vectorize or adapt to single conversion as well.
Problem Recent Solvers6
Suggested Problems
-
Find the alphabetic word product
2899 Solvers
-
Find the sum of the elements in the "second" diagonal
1096 Solvers
-
Back to basics 9 - Indexed References
427 Solvers
-
243 Solvers
-
Lychrel Number Test (Inspired by Project Euler Problem 55)
80 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!