-
alright time to ping @vincetheanimator for the millionth time for help
In your documentation, with any “32 bit float big endian” group of bytes, is it the same as ‘Single Precision’ in the IEEE 754 standard? Or is it some other way of representing a float in binary that I am unaware of?
Additional question — Does the way sticknodes reads a “32 bit float big endian” sequence of bytes include a sign bit at the beginning of the sequence?




Oh, one more question actually that I forgot —
When “Big Endian” is not specified, does that mean the endianness does not matter?
I assume you’re referring to this?:

Nah, endianness still matters there. I just forgot to put the endianness for that one lol
Should be big endian also
Based on the decompiled code, it seems like floats in SN are read with the java.io.DataInputStream.readFloat() method:


Tbh, I don’t the specifics of how the method works, but here’s some pictures of its code:
“Single format” is probably another way of saying “Single precision” , so I think I have the correct formula and im just bad at coding and math. Thanks
xd