Denso RC5 Spezifikationen Seite 501

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 500
Chapter 15 Functions
15-53
SPRINTF$ (Function)
Function
Converts an expression to a designated format and returns it as a character
string.
Format
SPRINTF$ (<Format>, <Expression>)
Explanation
<Format> includes a character string for output as it is, and a conversion
designation character string for converting and outputting the contents of
<Expression> (as a part of a character string).
The first character of the conversion designation character string is % and a
character (string) follows it.
A flag of 0 or more signifies a conversion designation character string (no
special order). The minimum field width (option) for writing a character
string. If the number of converted character values is less than the minimum
field width, the left side (right side if the following left justification flag is
designated) of the field is embedded with blanks (default) to fill the minimum
field width. The field width value is denoted as an asterisk (*) (described in
latter section) or an integer value.
Precision (Option). The precision option designates the minimum number of
digits displayed in conversion using conversion designation symbols d, i, o,
x and X. It designates the number of digits after the decimal point displayed
in conversion using conversion designation symbols e, E and f, and the
maximum effective number of digits displayed in conversion using
conversion designation symbols g and G. It also designates the maximum
number of characters written from a character string in conversion using
conversion designation symbol s. A period (.) is used as the precision value
followed by an asterisk (*) (described in the latter section) or an integer
value (option). If only a period is designated, the precision is designated as
0. If precision is designated with other conversion designation symbols, the
motion is not defined.
Conversion designation symbol
As just described, an asterisk (*) can be designated for field width and
precision. In the case of an integer type argument, designate the value of
width and precision. Arguments which designate the field width or precision,
or a value of both must be designated before (put field width before
precision) an argument (only if this is present) can be converted. If a
negative value is designated for the field width, it becomes the same
designation as the positive field width designated after a negative
conversion designation symbol. If a negative value is designated for
precision, it is the same as if the precision is ignored.
The meanings of the flags are as follows.
- : The conversion result is left justified in the field. (If this flag is not
designated, it is right justified.)
+ : In conversion with a sign, the first figure always has a + or - sign (If this
flag is not designated, a sign of - is added only for a negative value.)
Seitenansicht 500
1 2 ... 496 497 498 499 500 501 502 503 504 505 506 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare