Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

It definately isn't base 27, or you would need to use **27 not **26.

It is base-26 in the same way as feet are in inches base 12, or hours are in minutes base 60. The only unusual thing, in computer terms, is that it is a 1-based number system not a 0-based, but in the real world, most things are 1-based.

We measure the months 1 - 12 not 0 - 11, the metres in a kilometer, millimetres in a metre, grams in a kilo etc etc. as 1 - 1000 not 0 - 999

Update:

To reenforce this point. If the system where base-27, then the cycle would repeat every 27 symbol. It doesn't it repeats every 26th. vis. It MUST be base-26.

If it makes people more comfortable to think of it as A representing 0 and Z representing 25, so be it, but for it to be base 27, you would require 27 symbols, but there only 26.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller



In reply to Re: Re: Re: Re: Alpha base-26 to base-10... by BrowserUk
in thread Alpha base-26 to base-10... by eduardo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found