Variables – IAI America DS-S-C1 User Manual

Page 14

Advertising
background image

12

Integer Variable

Register

Real Variable

Register

4.

Variables

Note: The variable 99 is a special register for whole integer calculation.

The numbers that can be input in the program are -9,999,999 to 99,999,999.

4.2 Types of variables

There are two types of variables.

 Integer variable

These are whole number variables which cannot take decimal points. For example: [-2, -1, 0, 1, 2, 3]

1 2 3 4

Variable

Register #1

‚ Real variable

These are variables that can accommodate the actual value exactly as it appears, including digits following the
decimal point. [Example: 1234.567]

1234.567

Variable

Register #1

Note: The variable 199 is a special register for real number calculation.

The numbers that can be input in the program are -99,999.9 to 999,999.99 (8 digits which includes
the decimal point sign).

Integer Variable

No.

200~299 Global integer variable: Can be used in all programs

Integer Variable

No.

1~99

Local integer variable: Can be used only within an individual
program

Integer Variable

No.

300~399 Global integer variable: Can be used in all programs

Integer Variable

No.

100~199

Local integer variable: Can be used only within an individual
program

Advertising