Sharp MZ-700 Owner's Manual page 39

Hide thumbs Also See for MZ-700:
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
l
PRINT
)
1
variable
)
< {
;
}
constant
.
?
expression
!
variable
}
>
const~t
········
expressiOn
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 I x
w-
8
to 1 x 10
8
are displayed in real
number format.
-1
.9999
63598757
0. 00000001 ····
······
··
····
·····
··
······
···
·····
········
···
··
··1
X
10-B
99999999
Exponential format
Numbers
which
cannot be displayed in real number format are displayed in
exponential format.
- .
31
41 5E+9
............
..
...
.......
....... ....
....
..
....... -0.31415
X
10
9
.
51 3606E-20···· ····· ········
····
··
·········
····
······ ······
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.
PRINT
"[!]
"
PRINT
"III"
PRINT
"
I:I"
PRINT
"CI"
PRINT
"
D
"
PRINT
"
D
"
Clears the entire screen
and
moves the cursor to the home
position
(the
upper left corner of the screen).
Moves the cursor
t?
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents