Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bizarre number encoding
by Dominus (Parson) on Dec 30, 2001 at 20:29 UTC | |
|
Re: bizarre number encoding
by larsen (Parson) on Dec 30, 2001 at 19:45 UTC | |
|
Re: bizarre number encoding
by converter (Priest) on Dec 30, 2001 at 13:00 UTC | |
|
Re: bizarre number encoding
by talexb (Chancellor) on Dec 30, 2001 at 09:17 UTC | |
by Anonymous Monk on Dec 30, 2001 at 15:26 UTC | |
by metadoktor (Hermit) on Dec 30, 2001 at 18:58 UTC |