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
-
2821 Solvers
-
1295 Solvers
-
454 Solvers
-
Sort numbers by outside digits
141 Solvers
-
Sum the entries of each column of a matrix which satisfy a logical condition.
151 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!