DIV - Divide #
Divide Operand 2 by Operand 3, store result in Operand 1Operand 1 = Operand 2 / Operand 3
It is recommended prior to using the division operator, that you do a check, on the value of Operand3 to ensure that it is not zero (0).- Example
- Divide the hours worked last year (stored in a statistic) by 40 (the standard hours per week), and store the value into PC 1011.
Line | CMD | OT | Operand 1 | OPER | OT | Operand2 | OT | Operand3 | If Goto | Else GoTo |
---|---|---|---|---|---|---|---|---|---|---|
00010 | LET | PC | 1011 | DIV | S | HRS WRKD LAST YR | N | 40 | 99999 |