11-28-2022, 09:50 PM
That's some complicated math stuff there!
Here's all one would ever need with MOD -- no matter which pattern they like best:
Here's all one would ever need with MOD -- no matter which pattern they like best:
Code: (Select All)
For i = 10 To -10 Step -1
Print i Mod 5, ModX(i, 5)
Next
Function ModX (num1, num2)
ModX = ((num1 Mod num2) + num2) Mod num2
End Function