Sharp OZ-707 Operation Manual - Page 94

specified

Page 94 highlights

p LPRINT o FORMAT: 1 LPRINT {expreSSion} [ {expreSSion}] [,] . string , stnng 2 LPRINT {expreSSion} [. {expreSSion}] [;1 . string , string 3. LPRINT USING "format"; eXpreSSion} [{'} {expreSSion}] [{:}] { string ; stnng , 4. LPRINT Abbreviation: LP. See Also: PRINT, USING, OPEN, WIDTH PURPOSE: Outputs given data to the printer. REMARKS: When the serial 110 interface is opened with the OPEN command, the LPRINT command outputs the program to the serial 110 interface terminal. To return the printing command to the CE-50P Printer, execute the CLOSE command. When a comma (,) or semicolon (;) is placed at the end of the statement, the next LPRINT command in the program will print its data directly after the data printed by the first LPRINT. The CE-50P prints in the same format as the display specified with the PRINT command. If a numerical value fits on one line of the paper, it will be printed from the right margin. If it does not fit on on~ lin~, it will be printed from the left margin and continued on t~e follOWing. IIne(s). Character strings will be printed from the left margin and continued on the following line(s). For output to the serial 1/0 terminal, both numerical values and strings are printed from the left margin. 176 Format 2 prints out data in succession from the left margin. When a semicolon (;) is placed at the end of the statement, the next LPRINT command in the program will print its data in succession to the data printed by the first LPRINT. Format 3 prints out data in the exact format specified in the statement. Either a comma (,) or semicolon (;) may be used as a separator. For the format for USING, see the USING command. Format 4 prints only delimiter codes. If the preceding LPRINT statement is terminated with a semicolon (;) and unprinted data is left in the buffer, format 4 prints that data. MDF p o FORMAT: 1. MDF (expression) 2. MDF (expression, threshold number) Abbreviation: MD. See Also: USING PURPOSE: Rounds up the value of an expression. REMARKS: The MDF function rounds the value of an expression to the number of decimal places specified by the USING command. MDF is effective only when the number of decimal places is specified for a value by the USING command. Format 1 uses the standard default threshold number of 4. This means that if the first digit of the truncated part is more than 4, one is carried to the non-truncated part. This threshold number can be specified using format 2. 177

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

LPRINT
FORMAT:
1
LPRINT {expreSSion} [ {expreSSion}] [,]
.
string
, stnng
2
LPRINT {expreSSion}
[.
{expreSSion}]
[;1
.
string
, string
3.
LPRINT USING "format";
{
eXpreSSion}
[{'}
{expreSSion}]
[{:}]
string
;
stnng
,
4.
LPRINT
Abbreviation:
LP.
See
Also:
PRINT, USING, OPEN, WIDTH
PURPOSE:
Outputs given data to the printer.
REMARKS:
When the serial
110
interface is opened with the OPEN command, the
LPRINT command outputs the program
to
the serial
110
interface
terminal. To return the printing command to the CE-50P Printer,
execute the CLOSE command.
p
o
When a comma
(,)
or semicolon
(;)
is placed at the end of the
statement, the next LPRINT command
in
the program will print its data
directly after the data printed by the first LPRINT.
The CE-50P prints
in
the same format as the display specified with the
PRINT command. If a numerical value fits on one line of the paper, it
will be printed from the right margin. If it does not fit on
on~
lin~,
it will
be printed from the left margin and continued on
t~e
follOWing
. IIne(s).
Character strings will be printed from the left margin and continued on
the following line(s).
For output to the serial
1/0
terminal, both numerical values and strings
are printed from the left margin.
176
d
Format 2 prints out data in succession from the left margin.
When a semicolon
(;)
is placed at the end of the statement, the next
LPRINT command
in
the program will print its
data
in succession to the
data printed by the first LPRINT.
Format
3
prints out data
in
the exact format specified in the statement.
Either a comma (,) or semicolon
(;)
may be used as a separator.
For the format for USING, see the USING command.
Format
4
prints only delimiter codes.
If
the preceding LPRINT
statement is terminated with a semicolon
(;)
and unprinted data is left
in
the buffer, format
4
prints that data.
MDF
FORMAT:
1.
MDF (expression)
2.
MDF (expression, threshold number)
Abbreviation:
MD.
See
Also:
USING
PURPOSE:
Rounds
up
the value of
an
expression.
REMARKS:
The MDF function rounds the value of
an
expression to the number of
decimal places specified by the USING command.
MDF
is
effective only when the number of decimal places
is
specified
for a value by the USING command.
Format 1 uses the standard default threshold number of 4. This means
that if the first digit of the truncated part is more than
4,
one is carried
to the non-truncated part. This threshold number can be
specified
using format 2.
177
p
o