Problem 1165. Convert double scalar to half-precision floating point (IEEE 754r)
51.85% Correct | 48.15% Incorrect
Last Solution submitted on Jul 24, 2022
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.
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
Find the alphabetic word product
Find the sum of the elements in the "second" diagonal
Back to basics 9 - Indexed References
Lychrel Number Test (Inspired by Project Euler Problem 55)
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!