Magnavox W-10CR Installationsanleitung Seite 123

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 322
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 122
Programming Commands 107
FORMAT Miscellaneous Command
ACTION: Enables or disables the formatting of the STR$ returned string.
PROGRAM SYNTAX: FORMAT=m,n,d
REMARKS: This command is used in conjunction with the STR$ command to set the
format of the returned string.
The m specifies the format mode.
0 disable format
1 leading and trailing 0=s will be returned in the string.
2 sign followed by leading spaces and trailing 0's will be returned in
the string.
The n specifies the number of whole digits to be returned in the string.
This number does not include the sign of the returned string. If the sign is
positive a space will be inserted in place of the sign. If this value is 0 the
whole number value will be ignored.
The d specifies the number of decimal digits to be returned in the string.
If this value is 0 no decimal point will be returned and the fractional por-
tion of the variable will be ignored.
FORMAT=0,n,d
Disables the format mode. No leading or trailing characters are inserted
in the string.
If the number converted is outside the whole number digit the returned
string will have * substitutions for the numbers.
EXAMPLES: FORMAT=1,4,2 > sign leading & trailing 0'S
ABSPOS(1)= -200.254
A$=STR$(ABSPOS(1)) > A$ =Α-0200.25"
FORMAT=2,4,4 > sign leading space trailing 0's
ABSPOS(1)= -200.254
A$=STR$(ABSPOS(1)) > A$ =Α- 200.2540"
FORMAT=1,2,4 >Sign leading & trailing 0's
ABSPOS(1)= -200.254
A$=STR$(ABSPOS(1)) > A$ =Α-**.****"
FORMAT=0,1,1 >Disable formatting
Seitenansicht 122
1 2 ... 118 119 120 121 122 123 124 125 126 127 128 ... 321 322

Kommentare zu diesen Handbüchern

Keine Kommentare