TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: William McBrine
date: 2003-03-23 12:50:48
subject: Re: switch statement

-=> Neil Heller wrote to Jonathan de Boyne Pollar <=-

 NH> Base 36?  I've never seen or heard of base 36 being used outside of an
 NH> academic exercise.  Have you?

Yep, two uses, both BBS-related: it's used throughout RIPscrip, and to
represent the area number for replies in OPX (Silver Xpress format).

 NH> What's the necessity of this base?

It's (relatively) efficient -- it uses the minimum number of digits to
cover the maximum range of values, assuming that you're limited to 1-9 and
A-Z as digits. (In OPX, for example, a three-letter extension in base 36
covers areas 0 through 46655.)

Of course, you can get an even more efficient representation by making case
significant (as in base 64 MIME encoding), or by using characters outside
the strictly alphanumeric range (as in UUEncoding, also base 64).

 NH> Base 32, however, can be used as:
 ...
 NH>  sprintf(TargetStr, "0x%x", Source);

Um, that's base 16.

... The value of a program is proportional to the weight of its output.
--- MultiMail/Linux v0.44
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.