Pyramid Solutions AB7603 Manuel d'utilisateur Page 118

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 147
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 117
IT Functionality 9-15
© 2011 Pyramid Solutions Inc. Publication PUB-AB7603-014
The conversion characters and their meaning are shown below. If the character
after the “%” is not conversion character, the behavior is undefined.
Charac-
ter
Argument
Type
Converted To
d, i Byte,Short Signed Decimal Notation
o Byte,Short Unsigned Octal Notation (without a leading
zero)
x,X Byte,Short Unsigned hexadecimal notation (without a lead-
ing 0x or 0X)
u Byte,Short Unsigned decimal notation
c Byte,Short Single character, after conversion to unsigned
char
s char * Characters from the string are printed until a “\0”
is reached or until the number of characters indi-
cated by the precision have been printed
f Long Decimal notation of the form [-] m.dddddde+ -xx
or [-]m.ddddddE+-xx where the number of d’s is
specified by the precision. The default precision
is 6; a precision of 0 suppresses the decimal
point.
e,E Long Decimal notation of the form [-] m.dddddde+ -xx
or [-]m.ddddddE+-xx where the number of d’s is
specified by the precision. The default precision
is 6; a precision of 0 suppresses the decimal
point.
g,G Long “%e” or “%E” is used if the exponent is less than
-4 or greater than or equal to the precision; other-
wise “%f” is used. Trailing zeroes and trailing
decimal point are not printed.
%Print a%
Table 9-2 printf Conversion Characters
Vue de la page 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 146 147

Commentaires sur ces manuels

Pas de commentaire