![Anybus CompactCom 40 EtherNet/IP Network Manual Download Page 43](http://html1.mh-extra.com/html/anybus/compactcom-40-ethernet-ip/compactcom-40-ethernet-ip_network-manual_2948758043.webp)
Server Side Include (SSI)
43
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
Formatting Tags
• Type (Required)
The Type-character is required and determines the basic representation as follows:
• Flags (Optional)
• Width (Optional)
• .Precision (Optional)
The exact meaning of this field depends on the type character:
• Modifier
Type Character
Representation
Example
c
Single character
b
d, i
Signed decimal integer.
565
e, E
Floating-point number in exponential notation.
5.6538e2
f
Floating-point number in normal, fixed-point notation.
565.38
g, G
%e or %E is used if the exponent is less than -4 or greater than or equal to the
precision; otherwise %f is used. Trailing zeroes/decimal point are not printed.
565.38
o
Unsigned octal notation
1065
s
String of characters
Text
u
Unsigned decimal integer
4242
x, X
Hexadecimal integer
4e7f
%
Literal %; no assignment is made
%
Flag Character
Meaning
-
Left-justify the result within the give width (default is right justification)
+
Always include a ‘+’ or ‘-’ to indicate whether the number is positive or negative
(space)
If the number does not start with a ‘+’ or ‘-’, prefix it with a space character instead.
0 (zero)
Pad the field with zeroes instead of spaces
#
For %e, %E, and %f, forces the number to include a decimal point, even if no digits follow.
For %x and %X, prefixes 0x or 0X, respectively.
Width
Meaning
number
Specifies the minimum number of characters to be printed.
If the value to be printed is shorter than this number, the result is padded to make up the
field width. The result is never truncated even if the result is larger.
*
The width is not specified in the format string, it is specified by an integer value preceding
the argument that has to be formatted.
Type Character
Meaning
d, i, o, u, x, X
Specifies the minimum no. of decimal digits to be printed. If the value to be printed is
shorter than this number, the result is padded with space. Note that the result is never trun-
cated, even if the result is larger.
e, E, f
Specifies the no. of digits to be printed after the decimal point (default is 6).
g, G
Specifies the max. no. of significant numbers to be printed.
s
Specifies the max. no. of characters to be printed
c
(no effect)
Modifier Character Meaning
hh
Argument is interpreted as SINT8 or UITN8
h
Argument is interpreted as SINT16 or UINT16
L
Argument is interpreted as SINT32 or UINT32