Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Leading zeros give incorrect results

    Bug Reporting (FUZE 4 Nintendo Switch)
    4
    5
    211
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Martin
      Martin Fuze Team last edited by

      I've just reported this internally but so everyone is aware...

      If you add leading zeros to your numbers in the editor, which I did yesterday just to make my array values line up neatly you will get odd behaviour. Firstly it appears to force the number into Octal which, OK, I can accept that as something it might do. I can't find it in the help though.

      However, regardless, the bug is that 08 and 09 are treated as 0 and 0 instead of either 10 and 11 if you assume Octal or 8 and 9 if like me you just assume you're zero padding your numbers.

      Took me quite a while to work out why my sound effect would stop working when the delay was down to 09 frames !

      1 Reply Last reply Reply Quote 5
      • Martin
        Martin Fuze Team last edited by

        Right. This is not a bug, it's simply down to the fact that Octal is not documented (at least I don't think it is anywhere).

        So adding a leading zero to the number indicates to Fuze that the number is Octal. The reason that 8 and 9 come out as 0 is because they don't exist in Octal. I was overlooking this very obvious fact.

        One to watch out for then...

        xevdev 1 Reply Last reply Reply Quote 3
        • xevdev
          xevdev F @Martin last edited by

          @Martin any other number systems undocumented e.g. binary or hexadecimal

          pianofire 1 Reply Last reply Reply Quote 0
          • pianofire
            pianofire Fuze Team @xevdev last edited by

            @xevdev Yes hexadecimal can be used by prefixing with 0x

            1 Reply Last reply Reply Quote 1
            • Jongjungbu
              Jongjungbu F last edited by

              They day before you posted this, I had gone through my code and changed 01 to 09 to 1 to 9. For no reason. Now I'm glad I did. :D

              1 Reply Last reply Reply Quote 1
              • First post
                Last post