Number Format: Type Field

image\regex2_shg.gif

Samples (Type is in red): %1<%6.3f(E1-10)>

    %1<%d(E1-10)>

 

Type is the only required field. This must appear last ; after all the other optional formatting fields. The type character determines whether the associated argument is interpreted as a character, string, or number. Not all types are supported by Search and Replace.

Character

Output format

c or C

Outputs the ASCII character corresponding to the number found by the search term.

d

Signed decimal integer.

i

Signed decimal integer.

o

Unsigned octal integer.

u

Unsigned decimal integer.

x

Unsigned hexadecimal integer, using "abcdef."

X

Unsigned hexadecimal integer, using "ABCDEF."

e

Signed Exponent format, such as 3.2e+002.

E

As above but uses a capital E in front of the exponent section, e.g., 0.2E+015.

f

Signed "floating point" number such as 32.00000 or -8.000000. If precision is not specified, 6 decimal places are output. You should always use f if your search returns decimal number strings. Also, f must be used when your search returns number strings over 10 numbers in length.

g

Signed value printed in f or e format, whichever is more compact for the result and precision. The e format is used when the exponent of the value is less than รป4 or >= to the precision argument. Trailing zeros are truncated. The decimal point appears only if one or more digits follow it.

G

As above but uses capital E if an exponent is output.

p

Prints the address of the argument in hexadecimal digits.