This page (revision-4) was last changed on 26-Nov-2021 10:22 by JMyers

This page was created on 26-Nov-2021 10:22 by JMyers

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
4 26-Nov-2021 10:22 668 bytes JMyers to previous
3 26-Nov-2021 10:22 528 bytes JMyers to previous | to last
2 26-Nov-2021 10:22 477 bytes JMyers to previous | to last
1 26-Nov-2021 10:22 464 bytes JMyers to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed 2 lines
!!TRNC - Truncate
TRNC - Truncate
At line 4 removed one line
At line 6 changed 15 lines
||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 |
----
![Notes|Edit:Internal.TRNC_OPERATOR]
[{InsertPage page='Internal.TRNC_OPERATOR' default='Click to create a new notes page'}]
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