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
-
1659 Solvers
-
268 Solvers
-
Compute the dilation of a binary image
47 Solvers
-
438 Solvers
-
Determine the number of odd integers in a vector
590 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!