So, I noticed mod operator is not working the way I thought.
For example.

GDScript Output:

4 % 24 = 4
-4 % 24 = -4

Python Output:

4 % 24 = 4
-4 % 24 = 20

I wonder if Godot´s mod operator works differently with negative numbers


Best to use wrapi() for most things modulo is typically used for. It'll behave as expected.