From: Mike Moore Date: 2007-07-14T06:06:27+09:00 Subject: Re: Base 26 ------=_Part_24472_17012888.1184360786211 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/13/07, Phrogz wrote: > > > How about (i+10).to_s(36) Unfortunately that doesn't work. :) 9.to_s(26).tr('0-9a-p', 'a-z') => "j" (9+10).to_s(26).tr('0-9a-p', 'a-z') => "t" 99.to_s(26).tr('0-9a-p', 'a-z') => "dv" (99+10).to_s(26).tr('0-9a-p', 'a-z') => "ef" 999.to_s(26).tr('0-9a-p', 'a-z') => "bml" (999+10).to_s(26).tr('0-9a-p', 'a-z') => "bmv" 9999.to_s(26).tr('0-9a-p', 'a-z') => "oup" (9999+10).to_s(26).tr('0-9a-p', 'a-z') => "ouz" For more info see Wikipedia: http://en.wikipedia.org/wiki/Base_26 http://en.wikipedia.org/wiki/Base_36 ------=_Part_24472_17012888.1184360786211--