Chapter 3 Creating and Editing Screens inder) % (Get Rema Equation Var1 = Var2 % Var3 Explanation Perform t he division of Var2 and Var3, and store the remainder in Var1. Remark The calculation result can be stored as signed or unsigned WORD and DWORD. When the data exceeds the length of designated unit, the data out of range wi ll be discarded. Var1 can be internal memory only. Var2 and Var3 can be inte rnal memory or constant. The valu e contained within Var3 cannot be equal to 0 (zero). Example Divide $0 by the value of 2 and store the remainder value in $1 (this is an operation of unsigned 16-bit data).
Divide $2 by $3 and store the remainder value in $4 (this is an operation of signed 16-bit data). 3-306 Revision May, 2010