x - y * trunc(x/y)
>>-REM(x,y)----------------------------------------------------><
For examples that contrast the REM and MOD built-in functions, refer to MOD.