<?xml version="1.0" encoding="windows-1252"?>
<node id="89097" title="Re: Re: Re: Re: (Golf) Kaprekar's Process" created="2001-06-16 20:11:34" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="17251">
MeowChow</author>
<data>
<field name="doctext">
That's what the [sprintf] is there for. It formats a two-digit result into a three-digit string, eg. &lt;code&gt;099&lt;/code&gt;. After sorting and reversal, you get &lt;tt&gt;990 - 099&lt;/tt&gt;.
&lt;pre&gt;
  &lt;a href="/index.pl?node=MeowChow"&gt; MeowChow                                   &lt;/a&gt;
               s aamecha.s a..a\u$&amp;owag.print&lt;/pre&gt;</field>
<field name="root_node">
89075</field>
<field name="parent_node">
89090</field>
</data>
</node>
