Conversio
n form
Data format
Usage example
Data before conversion
ASCII data after
conversion
"%b" 16-bit BCD data Decimal ASCII data
"%b" , "%5b" , "%-5b" , "%05b" ,
"%10.5b"
"%Lb" 32-bit BCD data Decimal ASCII data
"%Lb" , "%5Lb" , "%-5Lb" ,
"%05Lb" , "%10.5Lb"
"%f"
32-bit single-precision real
number data
Floating point number ASCII
data
"%f" , "%5.2f" , "%+5.2f" , "%-5.2f" ,
"%05.2f" , "%#f" , "% f"
"%Lf"
64-bit double-precision real
number data
Floating point number ASCII
data
"%Lf" , "%5.2Lf" , "%+5.2Lf" ,
"%-5.2Lf" , "%05.2Lf" , "%#Lf" , "%
Lf"
"%e"
32-bit single-precision real
number data
Exponential notation ASCII
data
"%e" , "%5.2e" , "%+5.2e" ,
"%-5.2e" , "%05.2e" , "%#5.2e" , "%
e" , "%E"
"%Le"
64-bit double-precision real
number data
Exponential notation ASCII
data
"%Le" , "%5.2Le" , "%+5.2Le" ,
"%-5.2Le" , "%05.2Le" , "%#5.2Le" ,
"% Le" , "%LE"
"%g"
32-bit single-precision real
number data
Exponential notation ASCII
data or floating-point ASCII
data
(whichever is shorter in the
relevant notation)
"%g" , "%5.2g" , "%+5.2g" ,
"%-5.2g" , "%05.2g" , "%#5.2g" ,
"%G"
"%Lg"
64-bit double-precision real
number data
Exponential notation ASCII
data or floating-point ASCII
data
(whichever is shorter in the
relevant notation)
"%Lg" , "%5.2Lg" , "%+5.2Lg" ,
"%-5.2Lg" , "%05.2Lg" , "%#5.2Lg" ,
"%LG"
"%s" String data
String data (for the specified
number of characters)
"%s" , "%5s" , %-5s" ,"%-05s"
"%S" String data
String data (conversion for
the specified number of
characters, or up to H0)
"%S" , "%5S" , %-5S" ,"%-05S"
(Note 1) The number of converted digits for the conversion form is up to 16 digits.
(Note 2) Conversion modifier 'L’ can also specified in a lower case character.
(Note 3) "%S" (upper-case letter) is supported for CPU unit Ver. 4.10 and later, or Ver. 3.40 to Ver. 3.**.
■
Options for the conversion form [S1] (BIN data → ASCII data)
Items
Conversion
form
BIN data before
conversion
ASCII data after
conversion
Description
Specification
of upper /
lower case
characters
%x H ABCD "abcd"
Specifies upper or lower case
alphabets used for hexadecimal /
exponential notation ASCII data.
For %d, %u, %b, and %f, upper-case
letters are handled as body data.
%X H ABCD "ABCD"
%e SF1234.567 "1.234567e+3"
%E SF1234.567 "1.234567E+3"
Specification
of the number
of display
digits
%d K 100 "100"
The display digit is specified with "Total
number of characters" and "Number of
characters of precision." It is specified
with “n.m”, “n”, or “.m”, etc.
%5d K 100 "␣␣100"
%10.5d K 100 "␣␣␣␣␣00100"
14.14 PRINT/EPRINT Instruction Shared Conversion Form Table
WUME-FP7CPUPGR-12 14-71