hail monks - have any of you in your long years of wisdom come across an encoding for large numbers that works like this? (These are 8bit bytes)
here's 1:

64,8,0,0,0,0,0,0,0,240,63

here's 2:

64,8,0,0,0,0,0,0,0,0,64

and here's 131075:

64,8,0,0,0,0,0,24,0,0,65

All I can work out is that if you take the second byte from the right, a range of 16 for it will encode the range 2^n to 2^n+1. Where that range is bigger than 16 (most of the time), then the third byte to the right is called in, etc. - so 63 is:

64,8,0,0,0,0,0,0,128,79,64.

and 64:

64,8,0,0,0,0,0,0,0,80,64

that interval of 128 progressively halves until it's 1 (for 4096) and then a further byte is used,etc. If you've ever seen something like it please put me out of my misery...

In reply to bizarre number encoding by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.