Raptorlicious

Some things just have to be yummy.

Monday, August 31, 2020

Convert Float to Hex (notes)

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:

Decimal to IEEE 754 Floating Point Representation
https://www.youtube.com/watch?v=8afbTaA-gOQ

(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.

brent.shambaugh@gmail.com at 4:18 PM

No comments:

Post a Comment

‹
›
Home
View web version

About Me

brent.shambaugh@gmail.com
I am on a journey with programming, the hacker community, cubesats, polymer processing, and now electronics and high powered rockets.TRA: L2, HAM: KI5CWB. Bitcoin Address: 1HdCW1NvZzkbvmMVathAxn686ufeysbjab , Ethereum Address: 0x27223f12b4f06C7c45b546E5094d9c208a765B56 , LiteCoin Address: MVVaXXW5w9XswZbcfcBLJpj3rftawsKprg , XRP Address: rw2ciyaNshpHe7bCHo4bRWq6pqqynnWKQg:::ucl:::717595456
View my complete profile
Powered by Blogger.