Some of my favorites are various flavors of the ~r directive. Ever want to know how to say a really big number in English words? Lisp knows. Evaluate:
(format nil "~r" 1606938044258990275541962092)
and you should get back:
"one octillion six hundred six septillion nine hundred thirty-eight sextillion forty-four quintillion two hundred fifty-eight quadrillion nine hundred ninety trillion two hundred seventy-five billion five hundred forty-one million nine hundred sixty-two thousand ninety-two"
Aus Practical Common Lisp von Peter Seibel.
Keine Kommentare:
Kommentar veröffentlichen