REM Function

Purpose

Divides x by y and returns the remainder of x. You can calculate this as follows:
x - y * trunc(x/y)

Syntax

REM (x,y)

Parameters

x and y
Must be arithmetic expressions.