Appendices, Appendix a, Pt-basic commands list – Argox PA-20 Basic Programming Manual User Manual

Page 106: General commands, Commands for decision structures, Gosub, Goto, Set_precision, 4 appendices, Appendix a pt-basic commands list

Advertising
background image

PT-Basic Programming Manual Ver. 1.00

105/143

4 Appendices

Appendix A

PT-Basic Commands list

A1.

General commands

Command

description

ABS

To return the absolute value of a numeric

expression.

DIM

To specify the maximum value of variable

subscripts and to allocate storage accordingly.

GOSUB

To call a specified subroutine.

GOTO

To branch unconditionally to a specified line

number or line label from the normal program

sequence.

INT

To return the largest integer that is less than or

equal to the given numeric expression.

REM

To insert explanatory remarks in a program.

SET_PRECISION

To set the precision of the decimal points for

printing real number expression.

SGN

To return an indication of the mathematical sign

(+ or -) of a given numeric expression.

A2.

Commands for decision structures

Command

description

IF … THEN … {ELSE IF…}
[ELSE…] END IF

To provide a decision structure for multiple-line

conditional execution.

ON … GOSUB …

To call one of the several specified subroutines

depending on the value of the expression.

ON … GOTO …

To branch to one of several specified Line

Labels depending on the value of an expression.

Advertising