TRNC - Truncate#

Let the value in Operand 1 be the value in Operand 2 truncated to the value in Operand 3

Examples

Operand 2 Operand 3 Result (stored in Operand 1)
1000.239 0.01 1000.23
1.999999 0.001 1.999
1.999999 1 1
Statement
If the value of PC 105 has more than 2 decimal places, drop the extra decimals.

LineCMDOTOperand 1OPEROTOperand2OTOperand3If Goto Else GoTo
00010 LET PC 105 TRNC PC 105 N .01 99999
99999 EXIT 99999


Notes #

Click to create a new notes page