@Mattman: Modulus is the remainder after division.
function Mod(x, y)
a = abs(x)
b = abs(y)
temp = a/b
mod = a-(b*temp)
if x < 0 then mod = mod*(-1)
endfunction mod
Of course, integers only. Funny, in vb6 if x is negative then it returns negative, regardless of y. In my pocketpc's 3rd party scientific calculator, if y instead is negative then the result is negative. So I went with vb6 because nobody's complained about its mod operator yet.

I spelled "disappointment" wrong. Pahintulutan ang di-inaasahang nakakahiyang pagkakamaling dulot ng kamangmangan. Have at you.