http://qs1969.pair.com?node_id=89097


in reply to Re: Re: Re: (Golf) Kaprekar's Process
in thread (Golf) Kaprekar's Process

That's what the sprintf is there for. It formats a two-digit result into a three-digit string, eg. 099. After sorting and reversal, you get 990 - 099.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print