14.14 PRINT/EPRINT Instruction Shared Conversion Form Table
This table indicates the format for the "Conversion Form" that can be inserted in the "Text
Creation Form" to be specified for operand [S1] from the PRINT instruction or the EPRINT
instruction.
■
Setting the control string [S1]
Specifies the conversion data type, number of characters, precision, etc. using the string data of
the following formats. A variety of options (such as inserting a sign or spaces) can also be
selected depending on the type of data to be converted. For details, see below.
%
,
d
12.5
+
0 : Zero padding
+ : A sign is added (plus sign)
␣: A space is inserted
- : Left align (default is right align)
# : Characters are added according to the
conversion data
Option setting (1)
"
"
Option setting (2)
d: Signed integer
→ Decimal ASCII
u: Unsigned integer
→ Decimal ASCII
x: Unsigned integer
→ Hexadecimal ASCII
b: BDC integer
→ Hexadecimal ASCII
f: Floating point real number → Floating point ASCII
e: Floating point real number → Exponential notation
ASCII
g: Floating point real number → Floating point ASCII or
exponential notation
ASCII
s: String data
→ ASCII
, : A comma is added
BCD : Postfix characters are added
H : Postfix characters are added
Type of data to be converted (1)
[S1] =
L
L: Specify for 32-bit integer data or 64-bit real number data
Type of data to be converted (2)
Specify the total number of characters (n) and the number of
characters of precision (m) with [n.m], [n], or [.m]. The number of
characters of precision (m) changes according to the type of
conversion data
No. of
characters
after conversion and the precision
Type of data
to be converted
No. of characters of precision (m)
d , Ld, i , Li, u ,Lu,
x , Lx , b, Lb
represents the number of characters
in numerical strings.
f, Lf, e, Le, E, LE
represents the number of characters
after the decimal point.
g, Lg, G, LG
represents the number of significant
figures.
■
Conversion form table
Conversio
n form
Data format
Usage example
Data before conversion
ASCII data after
conversion
"%d" or
"%i"
16-bit data (signed integer)
Decimal ASCII data
"%d" , "%5d" , "%+5d" , "%-5d" ,
"%05d" , "%10.5d" , "% d"
"%Ld" or
"%Li"
32-bit data (signed integer)
Decimal ASCII data
"%Ld" , "%5Ld" , "%+5Ld" ,
"%-5Ld" , "%05Ld" , "%10.5Ld" , "%
Ld"
"%u"
16-bit data (unsigned
integer)
Decimal ASCII data
"%u" , "%5u" , "%-5u" , "%05u" ,
"%10.5u"
"%Lu"
32-bit data (unsigned
integer)
Decimal ASCII data
"%Lu" , "%5Lu" , "%-5Lu" ,
"%05Lu" , "%10.5Lu"
"%x"
16-bit data
Hexadecimal ASCII data
"%x" , "%5x" , "%-5x" , "%05x" ,
"%10.5x" , "%#x" , "%X"
"%Lx"
32-bit data
Hexadecimal ASCII data
"%Lx" , "%5Lx" , "%-5Lx" , "%05Lx" ,
"%10.5Lx" , "%#Lx" , "%LX"
14.14 PRINT/EPRINT Instruction Shared Conversion Form Table
14-70
WUME-FP7CPUPGR-12
Summary of Contents for FP7 Series
Page 2: ... MEMO 2 WUME FP7CPUPGR 12 ...
Page 18: ... MEMO xviii WUME FP7CPUPGR 12 ...
Page 52: ... MEMO 1 34 WUME FP7CPUPGR 12 ...
Page 104: ... MEMO 2 52 WUME FP7CPUPGR 12 ...
Page 123: ...3 9 ANS AND stack WUME FP7CPUPGR 12 3 19 ...
Page 125: ...3 10 ORS OR Stack WUME FP7CPUPGR 12 3 21 ...
Page 129: ...3 11 PSHS Push stack RDS Read stack POPS Pop stack WUME FP7CPUPGR 12 3 25 ...
Page 190: ...3 26 JP LBL Jump Label 3 86 WUME FP7CPUPGR 12 ...
Page 239: ...Name Description SR8 ER 3 46 ST ST ST ST ST ST Data Comparison Start WUME FP7CPUPGR 12 3 135 ...
Page 246: ... MEMO 3 142 WUME FP7CPUPGR 12 ...
Page 258: ... MEMO 4 12 WUME FP7CPUPGR 12 ...
Page 304: ... MEMO 5 46 WUME FP7CPUPGR 12 ...
Page 321: ...Name Description ER 6 7 DIVFP2 Division FP2 Compatible WUME FP7CPUPGR 12 6 17 ...
Page 348: ... MEMO 6 44 WUME FP7CPUPGR 12 ...
Page 388: ... MEMO 7 40 WUME FP7CPUPGR 12 ...
Page 438: ... MEMO 8 50 WUME FP7CPUPGR 12 ...
Page 450: ... MEMO 9 12 WUME FP7CPUPGR 12 ...
Page 520: ... MEMO 10 70 WUME FP7CPUPGR 12 ...
Page 602: ... MEMO 11 82 WUME FP7CPUPGR 12 ...
Page 622: ... MEMO 12 20 WUME FP7CPUPGR 12 ...
Page 650: ... MEMO 13 28 WUME FP7CPUPGR 12 ...
Page 1160: ... MEMO 18 66 WUME FP7CPUPGR 12 ...
Page 1188: ... MEMO 19 28 WUME FP7CPUPGR 12 ...
Page 1220: ... MEMO WUME FP7CPUPGR 12 ...
Page 1221: ... MEMO WUME FP7CPUPGR 12 ...