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.
Line CMD OT Operand 1 OPER OT Operand2 OT Operand3 If Goto Else GoTo
00010 LET PC 105 TRNC PC 105 N .01 99999
99999 EXIT 99999
Screen captures are meant to be indicative of the concept being presented and may not reflect the current screen design.
If you have any comments or questions please email the Wiki Editor
All content © High Line Corporation