Another problem from HAKMEM.

Suppose we start with a number, write it out in words, take the
length, and keep going.  For English, the result will always converge
to 4 (and, as far as I can tell, to 3 for Chinese).

Using us and zh from

http://www.jsoftware.com/jwiki/Essays/Number_in_Words

   ~. [EMAIL PROTECTED]:_"0 ]  1e3 ?. 1e4
4
   ~. [EMAIL PROTECTED]:_"0 ]  1e3 ?. 1e4
3

Why?

Best wishes,

John


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to