Node:Formats for general objects, Next:, Previous:Formats for numbers, Up:Formatted output



Formats for general objects

%a ("anything") Print the argument (any type) in a nice format. Do not print quotation marks or other escape characters. (Similar to Common Lisp's ~A.)

%s ("string") Same as %a. %-width.precisions Print the first precision characters of the printed representation of the argument, followed by enough spaces to bring the total length to width, The default for width is 0, and for precision it is -1. If the - is missing, remove excess width at the left, and add needed padding at the left.

%#s Print the argument in a format that can be read back in. (Similar to Common Lisp's ~S.)

%c ("character") Same as %c, except that if the argument is an integer, its character value is printed instead.

%#c Same as %c, except that if the argument is an integer, its character value is printed instead.