beautypg.com

Program structure, Constants, String – Argox PA-20 Basic Programming Manual User Manual

Page 9: Numeric, Variables, 2 program structure, 1 constants, 2 variables

background image

PT-Basic Programming Manual Ver. 1.00

8/143

2 Program Structure

2.1 Constants

Constants are the actual values used or generated in the program. There

are two types of constants:

2.1.1

String

A string constant is a sequence of up to 255 alphanumeric

characters or symbols enclosed in a pair of double quotation

marks.

 "BASIC"

 "2007.05.13"

 "ArgoBasic program guide"

 "168 IbB……"

 "IbB 168 ……!"

2.1.2

Numeric

Numeric constants include positive and negative numbers.

Numeric constants in BASIC cannot contain commas. There are

two types of numeric constants that can be used in the PT-Basic

interpreter.

Integer constants: – 2147483648 ~ + 2147483647

Real number constants: Positive or negative real number, that

contain a decimal point, such as 1.23

or –3.5897

2.2 Variables

Variable are symbols used to represent data items, such as numerical

values or character strings that are used in BASIC program. The value of a

variable may be assigned explicitly and can be changed during the

execution of the program. Value of a variable is assumed to be undefined

until a value is assigned to it.