Leading zeros give incorrect results
-
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 !
-
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...
-
@Martin any other number systems undocumented e.g. binary or hexadecimal
-
@xevdev Yes hexadecimal can be used by prefixing with 0x
-
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