Jump to content

one to a million of numbers


rob.i

Recommended Posts

Paul_D:

Same as Binary effectively but to the power of 16......7A5 = 7 x16 x16 + 10 x 16 + 5 (where A effectively = 10, B= 11, C= 12 etc) Simple!          :confused:  

Thanks Paul I think I get it but no need to call me Simple! :rolleyes:
Link to comment
Share on other sites

  • Replies 89
  • Created
  • Last Reply

Top Posters In This Topic

Meant to say base 16 actually. Probably a better way of explaining the above:

 

5 x 16 to the power of 0 = 5

plus

10 x 16 to the power of 1 = 160

plus

7 x 16 to the power of 2 = 1792 etc.

 

That's enough thinking for today! :D

Paul

Link to comment
Share on other sites

Paul_D:

Meant to say base 16 actually. Probably a better way of explaining the above:

 

5 x 16 to the power of 0 = 5

plus

10 x 16 to the power of 1 = 160

plus

7 x 16 to the power of 2 = 1792 etc.

 

That's enough thinking for today!      :D  

Right . Why didn't you say that in the first place?? :confused:

 

PS 1792? we were talking about my birth date not Chester's :D

 

[ 30. September 2004, 03:44 PM: Message edited by: Scapanapper ]

Link to comment
Share on other sites

The system we use (to the point that it seems 'normal' to us) is base 10 / decimal.

 

Discrete numbers are from zero to nine and after nine, we have to do something different. That thing is to let the number roll from nine back to zero but add a 1 onto it so that after 9 comes 10 and we call that ten while knowing it is simply one more than nine. We know to count that way although we normally omit the zero and have invented great names for numbers larger than 9 like ten or twenty or whatever.

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc.

 

Nice, easy system to work with and matches nicely with the number of fingers we have. But not the only possibility. You can use any number base that is convenient as long as you say which one. Base 10 is pretty much the default for people so we don't bother to specify.

 

Early computers operated from mechanical switches that had two positions. They were either off or on. Binary seemed a natural fit to switches (two positions) just as decimal is a good fit to most people (10 fingers). In binary with only zero and one to work with, after zero comes one and after one comes zero again with an added number so you go above one. Since mostly math and computer geeks work with the stuff, no one bothered to invent nice names for the numbers above one though.

0, 1, 10, 11, etc.

 

Hexadecimal (base 16) is convenient for the same computer geek folks because it is very easy to translate numbers from binary notation (which gets horribly long) to base 16 which is much shorter. The geekly guys (who must have had a sense of humor by using byte for 8 bits and nibble for half a byte) decided not to invent new symbols though so Hex uses letters for the additional symbols needed to display Hex numbers above 9.

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, etc. and after F comes 10 but it is not the same as ten any more than a binary 10 is ten. Us decimal users would call the 10 in Hex seventeen.

 

You can see the easier translation because, for instance, a binary byte is 11111111 (8 bits). Way too long to deal with if you can avoid it but critical for PC programming.

 

11111111 binary = 255 decimal. Better but doesn't make things that much easier.

 

11111111 binary = FF hexadecimal. Lots easier and a nice round number.

 

And the 'megabyte' the PC folks always talk about is

11111111111111111111 binary = 1048575 decimal = FFFFF Hexadecimal

Notice the decimal number is the only really stupid looking one. Binary and Hex are nice, round numbers.

" My choices in life were either to be a piano player in a whore house or a politician. And to tell the truth, there's hardly any difference!" - Harry Truman, 33rd US President

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

We and our partners use cookies on our website to give you the most relevant experience by remembering your preferences, repeat visits and to show you personalised advertisements. By clicking “I Agree”, you consent to the use of ALL the cookies. However, you may visit Cookie Settings to provide a controlled consent.