Previous: , Up: Strings   [Contents][Index]


18.3.6 String Formatting

Poke provides a built-in function format that can be used in order to format, or build, a string value that is derived from a set of zero or more Poke values:

format (fmt[, value…])

Where fmt is a format string that interpreted verbatim but for predefined format tags which start with %. These format tags are interpreted especially. See printf.

Example:

var s = format ("Age is %i32d.", 66);

The value of the variable s is "Age is 66.".