• Profile picture of vuice

    vuicesubscriberocciferuc-winner-lvl1featured-lvl1 2022-11-02 21:31:00 UTC

    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?

    3
    • Oh, one more question actually that I forgot —
      When “Big Endian” is not specified, does that mean the endianness does not matter?

      2022-11-02 22:16:47 UTC 2
      • Replying to: vuiceOh, one more question actually that I forgot -- When "Big E

        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

        2022-11-03 00:02:36 UTC 1
    • 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:

      2022-11-02 23:59:25 UTC 1
      • Replying to: Vince the AnimatorBased on the decompiled code, it seems like floats in SN are

        “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

        2022-11-03 00:20:25 UTC 1