Site hosted by Angelfire.com: Build your free website today!

dec2base27

PURPOSE ^

DEC2BASE27(D) returns the representation of D as a string in base 27,

SYNOPSIS ^

function s = dec2base27(d)

DESCRIPTION ^

   DEC2BASE27(D) returns the representation of D as a string in base 27,
   expressed as 'A'..'Z', 'AA','AB'...'AZ', until 'IV'. Note, there is no zero
   digit, so strictly we have hybrid base26, base27 number system.  D must be a
   negative integer bigger than 0 and smaller than 2^52, which is the maximum
   number of columns in an Excel worksheet.

   Examples
       dec2base(1) returns 'A'
       dec2base(26) returns 'Z'
       dec2base(27) returns 'AA'
-----------------------------------------------------------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004