Okay that actually makes a lot of sense, for the octal I think I have it in my mind a certain way and almost grasp it but is there a limit to how many 0’s?
00000000 = 8 digits, can that still be octal?
010 = 8, so in the string about is that the same as 00000010, we are just shifting the zero’s… Actually when i write this it seems like it is making sense now…
When doing octal, in PHP you place the ZERO before the actual octal, does that discard the first 0?
011 = 9, you can’t use the zero can you? Or would you do…
0111 = 25 (I think thats 25)
I have been reading on hexidecimal also and figure it out kind of, im not fast at it by all means.
It goes:
1 2 3 4 5 6 7 8 9 A B C D E F
so…
0x1 = 1
0xA = 10
0xF = 15
Then it gets tricky…
0x10 goes to 16 (right after the F, add a 0 after the one),
0x11 goes to 17
then when you hit
0x1F you are at 31.
And it kind of repeats itself and then goes,
0x20 for 32.
I can do that if I count them manually, I found a few formulas but i am not with it yet.
I see that 0x1 to 0xFF goes to 255,
and what’s also amazing is that 0xFFFFFF goes to 16.7 million, and that must be how they count screen colors too.
It seems like a VERY smart way to contain so many options in such a short string!