Sharp MZ-700 Series Owner's Manual page 42

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

Advertisement

(e) X X
Specifying a pair of asterisks at the beginning of the f o r m a t string indicates
that asterisks are to be displayed in the positions of leading zeros.
(Example:)
10 A = 1234
20 PRINT USING " X X # # # # " ; A
RUN J
X X 1 2 3 4
( f )
£ £
Specifying a pair of p o u n d signs at the beginning of the format string indi-
cates that a pound sign is to be displayed in the position immediately t o the
left of the number.
(Example:)
10 A = 123
20 P R I N T USING " £ £ # # # # " ; A
R U N J
- - £ 1 2 3
(g) $$
Specifying a pair of dollar signs at the beginning of the f o r m a t string indi-
cates that a dollar sign is to be displayed in the position immediately to t h e
left of the number.
(h) t t t t
F o u r exponential operators may be included at the end of a f o r m a t string
to control display of numbers in exponential f o r m a t .
(Example:)
10 A = 51123
20 PRINT USING " # # . # # # 1 1 t t " ; A
R U N J
- 5 . 1 1 2 E + 0 4
In this case, the first n u m b e r sign is reserved f o r display of the sign of the
number.
( i ) Extended list of operands
A list of variables may be specified following a single PRINT USING state-
m e n t by separating them f r o m each others with commas or semicolons.
When this is done, the f o r m a t specified in " f o r m a t string" is used f o r display
of all resulting values.
(Example:)
10 A = 5 . 3 : B = 6.9 : C = 7 . 1 2 3
20 P R I N T USING " # # . # # # " ; A, B, C
R U N J
— 5.300— 6.900 ^ 7.123

Advertisement

Table of Contents
loading

Table of Contents