How to convert float to hex?
https://bytes.com/topic/c/answers/219928-how-convert-float-hex
https://en.wikipedia.org/wiki/Integer_(computer_science)
a completed solution of a int to hex:
https://www.geeksforgeeks.org/program-decimal-hexadecimal-conversion/
https://gist.github.com/bshambaugh/8788cdb6644e235c510dc7cb2f4b3786
https://www.baeldung.com/java-byte-arrays-hex-strings
compare to:
https://www.scadacore.com/tools/programming-calculators/online-hex-converter/
But you really want:
Tutorial: Floating-Point
Binary
http://cstl-csm.semo.edu/xzhang/Class%20Folder/CS280/Workbook_HTML/FLOATING_tut.htm
https://en.wikipedia.org/wiki/Single-precision_floating-point_format
method:
(compare: https://www.geeksforgeeks.org/program-for-conversion-of-32-bits-single-precision-ieee-754-floating-point-representation/),(https://blogs.nvidia.com/blog/2019/11/15/whats-the-difference-between-single-double-multi-and-mixed-precision-computing/)
misc:
https://stackoverflow.com/questions/37538/how-do-i-determine-the-size-of-my-array-in-c
https://stackoverflow.com/questions/34844003/changing-array-inside-function-in-c/34844835
See Discrete Mathematics, 7th ed, page 231.
No comments:
Post a Comment