Variables 0.0 - Casio FX-795P Owner's Manual

Hide thumbs Also See for FX-795P:
Table of Contents

Advertisement

wt
2) # ~&:
If a number key is pressed after the fa] key in the RUN mode, the
program
in the area specified by the number key will be executed from the
first line.
*Variables are not cleared when executing a program.
92
5-3 Variables
Twenty-six variables named A to Z are provided as a standard feature of the
computer and calculation results and: numeric values: can be stored in these
variables. These variables have already been used for manual calculations, and
they will serve as "memories" when the computer is used as a calculator.
Capital alphabetical letters A to Z are used for variable names and these will be
called simple variables. Subscripts in parentheses such as A(3) and X(4, 5) can
also-be added to the variable name. Variables in' this form are called array
variables and are used when handling large volumes of data.
All of the variables mentioned up to this point are for numeric values and are
called numeric variables. Variables to which character strings are assigned are
called character variables. Character variables are indicated by adding a dollar
sign ($) after the variable name such as A$. Character variables can also be used
as array variables such as C$(12). In addition to these variables, the computer is
provided with the exclusive character variable $.
In other words, the computer is provided with the following variables.
-
Simple variable
Array variable
Numeric variable] A,
B,
C--,
Z
Character variable] AS,
B$.
--.
ZS.
$
The numeric variable will store numeric values of up to 12 digits (12 digits for
a mantissa and: 2 digits for an exponent) and the character variable will store
character string of up to 7 characters. The exclusive character variable $ will
store character string of up to 62 characters.
< Two Array Declarations >
This computer is capable of array variable declarations by DIM statements and
array declarations by DEFM statements. By using a DIM statement, it is possible
to use array variables of up to three dimensions. The DEFM statement is used
when desiring to expand the number of variables but it can also be used to
declare array variables.
A maximum of up to eight array variables can be used
simultaneously with a DIM statement.
93

Advertisement

Table of Contents
loading

Table of Contents