Remote Processing Coorporation RPC-320 Dokumentacja Strona 120

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 186
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 119
Commands - 90
PRINT USING
Statement
SYNTAX: PRINT USING[#n,]!"format string"; expression
PURPOSE: To print strings or numbers using a specified format.
REMARKS: n = valid port number. Port numbers are 1 and 2 for serial; 9 for VF display; 10 for LCD display.
LCD and VF displays must be configured using the CONFIG DISPLAY command before use.
The format declaration(s) is one or two strings that specify the print format. The three possibilities
are:
# Used to specify the number of digits to be printed on each side of the decimal point.
ˆˆˆˆ Used to print numbers in scientific or engineering notation. This format string must contain
4 carets and be used in conjunction with the # format string. Failure to do the latter will
produce unpredictable results.
. Used to specify the location of the decimal point in a field determined by the use of #.
NOTE: You cannot print a string expression in the same line containing a format declaration. The
string will be taken as numerical.
RELATED: PRINT, PRINT$
EXAMPLE: A = 1.2345
PRINT USING "##.##";A
1.23
PRINT USING ".##";A
%1.23
The % sign indicates that the number contained digits outside the specified field.
Przeglądanie stron 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 185 186

Komentarze do niniejszej Instrukcji

Brak uwag