7.7.1.19. Format SpecifiersΒΆ

Format Specifiers

A format specifier has the following form:

%type

Unlike C, the GEL format specification contains only the percent sign and a type character (for example %s). The type character determines whether the associated argument is interpreted as a string, or number:

Character

d

u

x

f

e

s

Type

int

int

int

double

double

string

Output Format

Signed decimal integer.

Unsigned decimal integer.

Hexadecimal Format.

Signed value having the form [-]dddd.dddd.

Signed value having the form [-]d.dddd e [sign]ddd.

Characters printed up to the first null character. The string passed to this format type must be a constant string declared on the host.

___

See also:

GEL Functions: Alphabetical List