RDU - Round Up #

Round Up uses similar logic to Round Nearest, but rounds up to the next level specified in Operand 3

Examples

Operand2Operand3Result (stored in Operand 1)
1.100111 2
1.100110.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
00010LETVANNUALIZED SALARYWAGEWBYR 00020
00020 LETVANNUALIZED SALARYRDUVANNUALIZED SALARYN100 99999
99999 EXIT 99999


Notes #

Click to create a new notes page