January 16, 2009

Go Figure!

This is a line of CL and its o/p:
(format nil "~r" 5666666666666666656556)

"five sextillion six hundred sixty-six quintillion six hundred sixty-six quadrillion six hundred sixty-six
trillion six hundred sixty-six billion six hundred sixty-six million six hundred
fifty-six thousand five hundred fifty-six"

Uber cool ! I came across the -R directive while reading Chapter 3 of Practical Common Lisp

PS: If you want to learn CL, the best place to start would be Practical Common Lisp

0 comments:

Post a Comment