RDU_OPERATOR
Back to current versionRestore this version

RDU - Round Up #

Round Up uses similar logic to Round Nearest, but rounds up to the next level specified in Operand 3 Examples Operand2 Operand3 Result (stored in Operand 1) 1.10011 1 2 1.10011 0.001 1.101 1.1 0.5 1.5 1.0 0.5 1.0 As with RDN, it is acceptable to round up to the next .25, or any other amount such as to the next 2, 3, etc. Statement: Round the employee’s annualized salary to the next 1000 and store the value into the Variable Ann Sal Rnd Up
LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010 LET V ANNUALIZED SALARY WAGE WB YR 00020 00020 LET V ANNUALIZED SALARY RDU V ANNUALIZED SALARY N 100 99999 99999 EXIT 99999