Modulo operation please

This is great and I will be using this, but a built in modulo would be much better. I'm going to mark this as the solution for now though, this is the pulpscript I am using:

mod = x
mod /= y
mod -= floor mod
mod *= y

x being the dividend and y being the divisor, mod will contain the modulus (remainder)

3 Likes