```
local x = -9 local y = 5
print(math.fmod(x,y),x%y) --> -4, 1
local x = 9 local y = 5
print(math.fmod(x,y),x%y) --> 4 4
```

I can’t understand why -9%5 is 1…

Could you explain…? ;-;

```
local x = -9 local y = 5
print(math.fmod(x,y),x%y) --> -4, 1
local x = 9 local y = 5
print(math.fmod(x,y),x%y) --> 4 4
```

I can’t understand why -9%5 is 1…

Could you explain…? ;-;

1 Like

If you dont understand the post,

It divides the 2 numbers and prints the remainder

9%6 = 3

8%2 = 0

15%4 = 3

Thanks for make it more detail Im bad at explaining stuff

1 Like