[quote=132487:@Richard Summers]OK - I am now fresh and awake

So if I have understood this correctly:

If I am converting a text string of 400 to Octal - it will return one value, and if I am converting a numeric string of 400 - it will return another. I never realised it would differentiate between text and numerics.

So if 33 returns an Octal of 41 and 400 returns an Octal of 064 060 060, can the result ever be more (or less) than 2 or 3 characters? Example - could an Octal ever return just one digit, or return 4 digits for a single text / numeric character?

At the moment, this is simply for educational purposes, and I am trying to understand the concept.

Thanks - I appreciate the help.[/quote]

Normally we count in base 10

Octal counts in Base 8

Both are still positional numbering systems though

So in base 10 you count 1,2,3, etc up to 9 and when you get to 10 you add a “position” and write 1 followed by the lowest digit in the numbering system - 0. Hence you write 10. Ten.

And this is 1*10^1 + 0 *10^0

In Octal you only have 8 digits (0,1,2,3,4,5,6,7) and you do the “carry” when you get to 8

So in octal you count 1,2,3,4,5,6,7 and now you have to move up to the next position so you write 1 followed by 0

So in Octal 10 means “8” in base 10

This is 1*8^1 + 0 *8^0

9 in octal is 8 + 1 or 11 - which is 9 in base 10

Base 2 is similar except it uses 2 digits (0 & 1)

And you do this EVERY day without even thinking about it

Base 60

60 seconds make 1 minute

60 minutes make 1 hour

etc

NOW Can it have less than 3 digits - sure

There are some conventions for writing numbers in certain programming languages though

But it certain possible to write 10(base 8) and it makes perfect sense