Format (Common Lisp) Information & Format (Common Lisp) Links at HealthHaven.com
advertise
add site
services
publishers
database
health videos
Bookmark and Share

search wiki for    ?
web dir firms image gallery news pdf wiki shop video 
about
toolbar
stats
live show
health store
more stuff
JOIN/LOGIN
Featured Results:
Lisps - Speech Disorder (UK)
Lisps - Speech Disorder (UK)
speechdisorder.co.uk
 Treament of Common Diseases Homeopathic, Homeopathic Remedies, common...
Treament of Common Diseases Homeopathic, Homeopathic Remedies, common...
drjoshisclinic.com
 Answers in Question and Answer...
Answers in Question and Answer...
thyroidcancer.com
  Format Glossary
Format Glossary
cmeinfo.com
 

Format is a function in Common Lisp that can produce formatted text and is normally used in a manner analogous to printf in C and other curly bracket programming languages. However, it provides much more functionality than printf allowing the user to output numbers in English, apply certain format specifiers only under certain conditions, iterate over data structures, and output in a tabular format.

[edit] Example

An example of a C printf call is the following:

  printf("Color %s, number1 %d, number2 %05d, hex %x, float %5.2f, unsigned value %u.\n",              "red", 123456, 89, 255, 3.14, 250); 

Using Common Lisp, this is equivalent to:

  (format t "Color ~s, number1 ~d, number2 ~05d, hex ~x, float ~5,2f, unsigned value ~u.~%"              "red" 123456 89 255 3.14 250) 

[edit] References




Product Results (view all...)

search wiki for    ?
web dir firms image gallery news pdf wiki shop video 



↑ top of page ↑about thumbshots