skip to main | skip to sidebar

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.

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

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Followers

Blog Archive

  • ►  2022 (12)
    • ►  December (3)
    • ►  October (1)
    • ►  September (2)
    • ►  August (2)
    • ►  July (2)
    • ►  May (1)
    • ►  February (1)
  • ►  2021 (78)
    • ►  December (4)
    • ►  November (4)
    • ►  October (4)
    • ►  September (4)
    • ►  August (2)
    • ►  July (5)
    • ►  June (3)
    • ►  May (8)
    • ►  April (19)
    • ►  March (10)
    • ►  February (9)
    • ►  January (6)
  • ▼  2020 (78)
    • ►  December (8)
    • ►  November (4)
    • ►  October (5)
    • ►  September (16)
    • ▼  August (7)
      • Convert Float to Hex (notes)
      • ASR6501 for CubeCell
      • Getting Data from Satellite
      • planning
      • looking at different expressions of Verifiable C
      • catagory theory notes
      • Antenna thoughts.
    • ►  July (3)
    • ►  June (11)
    • ►  May (10)
    • ►  April (2)
    • ►  March (7)
    • ►  February (4)
    • ►  January (1)
  • ►  2019 (28)
    • ►  September (2)
    • ►  May (3)
    • ►  April (3)
    • ►  March (4)
    • ►  February (7)
    • ►  January (9)
  • ►  2018 (84)
    • ►  December (17)
    • ►  November (23)
    • ►  October (6)
    • ►  September (1)
    • ►  August (6)
    • ►  July (2)
    • ►  June (1)
    • ►  May (7)
    • ►  April (6)
    • ►  March (3)
    • ►  February (6)
    • ►  January (6)
  • ►  2017 (196)
    • ►  December (5)
    • ►  November (5)
    • ►  September (25)
    • ►  August (20)
    • ►  July (9)
    • ►  June (13)
    • ►  May (11)
    • ►  April (37)
    • ►  March (21)
    • ►  February (25)
    • ►  January (25)
  • ►  2016 (18)
    • ►  December (6)
    • ►  November (1)
    • ►  July (4)
    • ►  June (1)
    • ►  May (6)
  • ►  2015 (14)
    • ►  December (3)
    • ►  November (5)
    • ►  September (2)
    • ►  July (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2014 (21)
    • ►  December (2)
    • ►  October (3)
    • ►  September (1)
    • ►  August (1)
    • ►  May (3)
    • ►  March (3)
    • ►  February (8)
  • ►  2013 (9)
    • ►  December (1)
    • ►  June (3)
    • ►  May (2)
    • ►  March (2)
    • ►  February (1)
  • ►  2012 (30)
    • ►  December (3)
    • ►  November (4)
    • ►  October (3)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  June (4)
    • ►  May (4)
    • ►  March (7)
  • ►  2011 (59)
    • ►  December (10)
    • ►  November (2)
    • ►  October (6)
    • ►  September (9)
    • ►  August (5)
    • ►  July (18)
    • ►  June (9)
  • ►  2010 (9)
    • ►  November (2)
    • ►  October (1)
    • ►  August (2)
    • ►  July (1)
    • ►  April (2)
    • ►  January (1)
  • ►  2009 (22)
    • ►  December (8)
    • ►  November (5)
    • ►  October (9)

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