When i was describing notations and representation of numbers in Erlang(and Python) i forgot to mention very cool feature of format function in Common Lisp, with which i got acquainted exploring highly-recommended Practical Common Lisp book.
This feature is ~R directive which knows how to say really big numbers in English words.
Here is the example (I use SBCL + SLIME):
CL-USER> (format nil "~R" 1604872898756737459538) "one sextillion six hundred four quintillion eight hundred seventy-two quadrillion eight hundred ninety-eight trillion seven hundred fifty-six billion seven hundred thirty-seven million four hundred fifty-nine thousand five hundred thirty-eight"
If you enjoyed this post why not subscribe via email or my RSS feed and get the latest updates immediately.
You can also follow me on GitHub or Twitter.



{ 1 comment… read it below or add one }
Wonderful post! gud stuff..