|
Allegro CL |
ANSI Common Lisp ![]() ![]() ![]() 22.3.2.1 Tilde R: Radix~nR prints arg in radix n. The modifier flags and any remaining parameters are used as for the ~D directive. ~D is the same as ~10R. The full form is ~radix,mincol,padchar,commachar,comma-intervalR. If no prefix parameters are given to ~R, then a different interpretation is given. The argument should be an integer. For example, if arg is 4:
For example:
(format nil "~,,' ,4:B" 13) If and only if the first parameter, n, is supplied, ~R binds *print-escape* to false, *print-radix* to false, *print-base* to n, and *print-readably* to false. If and only if no parameters are supplied, ~R binds *print-base* to 10. |