Sharp MZ-700 Series Owner's Manual page 39

Personal computer
Hide thumbs Also See for MZ-700 Series:
Table of Contents

Advertisement

2.3.5 Input/output statements
Input/output statements are the means by which data is submitted to the computer for processing,
and by which the results of processing are output to the TV screen or printer.
2. 3. 5. 1 PRINT
Format
Function
PRINT
variable
constant
1
?
expression
<
>
variable
• constant
.expression J
This statement outputs the values of variables, constants, character strings, or
expressions to the display screen. Values are displayed starting at the cursor's
current location on the screen. (To move the cursor down one line on the screen,
execute the PRINT statement without specifying any variables, constants, or ex-
pressions.)
To simplify key input when entering this statement, a question mark (?) may
be typed instead of the word PRINT.
Numeric data is displayed by this statement in one of two formats: real number
format or exponential format.
Real number format
Numeric values in the range from 1 x 10"
8
to 1 x 10
8
are displayed in real
number format.
- 1 - 9 9 9 9
6 3 5 9 8 7 5 7
0. 00000001
9 9 9 9 9 9 9 9
•1 x 10
- 8
Exponential format
Numbers which cannot be displayed in real number format are displayed in
exponential format.
- . 3 1 4 1 5 E + 9
—0.31415 x 10
9
. 5 1 3 6 0 6 E — 2 0
0.513606 x 10"
:20
A plus (+) or minus (—) sign is always displayed ahead of the exponent (the number
following " E " ) of a number displayed in exponential format.
Some special methods of using the PRINT statement are shown below.
P R I N T
P R I N T
P R I N T
P R I N T
P R I N T
P R I N T
D
a
Clears the entire screen and moves the cursor to the home
position (the upper left corner of the screen).
Moves the cursor to the home position without clearing the
screen.
Moves the cursor one column to the right.
Moves the cursor one column to the left.
Moves the cursor up one line.
Moves the cursor down one line.
37

Advertisement

Table of Contents
loading

Table of Contents