sure, let f(A,B) be reminder, A be dividend and B be divisor, then
f(A,B)=A-B*[A/B]

and [x] denotes the largest integer less than or equal to x

or since mod is a valid mathematical function, much easier:

f(A,B)=A mod B