Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#127414 - 05/30/07 02:36 AM Re: Interesting pic of the day [Re: Gail]
bevin Offline


Registered: 09/04/02
Posts: 4699
Loc: New England
For purely historical reasons, and perhaps due to our # of digits on our hands (that's why they are called digits :-)), we use "base ten". This means that, when we write "10", it is saying "one lot of ten, and zero lots of one" - and one*ten + zero*one = ten!

Imagine we had sixteen digits. Then we might have counted up to sixteen before we had to start grouping things into groups of (not ten but) sixteen.

Then the number "12" would have meant "one lot of sixteen plus two lots of one" and "one times sixteen plus two times one = eighteen".

eighteen divided by six is three.

In base sixteen, we would write this as 12 / 6 = 3

Base sixteen is used a lot in the computer industry, because it is a convenient shorter way of doing base two (binary) arithmetic.

We use the letters A-F to represent the extra "digits", so we count 0 1 2 3 ... 9 A B ... F 10 11 12 13... 19 1A 1B ... 1F

In computer languages, such as C, we need a way of writing these that makes in clear whether you are using base ten or base sixteen. We do this by putting a "0x" on the front to mean hexadecimal - eg

 Quote:

if (18 == 0x12) printf("Ain't this fun!\n");


Now, for extra marks, tell me what the \n means! I'll give you a clue, it is ASCII character 0xa.

/Bevin

Top
#127424 - 05/30/07 03:05 AM Re: Interesting pic of the day [Re: bevin]
Amelia Administrator Offline
Here Forever, by Request :)

Registered: 07/30/01
Posts: 17915
Loc: Out standing in a field
you lost me at 12 = 18
_________________________
"Earth - insane asylum for the universe." - Maxine

" Do not love the world or anything in the world. If anyone loves the world, the love of the Father is not in him..."1 John 2:15-16

Fairview Or

Top
#127441 - 05/30/07 04:25 AM Re: Interesting pic of the day [Re: Amelia]
bevin Offline


Registered: 09/04/02
Posts: 4699
Loc: New England
Consider weights. We can either write "16 ounces" or "1 pound". This doesn't mean 16 = 1, it means that the context the "16" appears in is important.

Consider dates. We write "9/11/2007" and an Australian thinks we are talking about the 9th of November, whereas a New Yorker thinks we are talking about the 11th of September. The exact same characters mean different dates because the two people understand them differently.

Similarly the characters "12" can mean the number twelve to one person, from a society where base 10 is the norm, and the number eighteen to another person from a society where base 16 is the norm.

Very confusing at first - but only because you haven't encountered it before.

Consider the old hymn where "it varies with the wind". The characters "wind" are identical for two different words - the movement of air, and the turning of a coil of spring in an old clock.

So the characters "12" can have many different meanings.

No wonder the poor girl is looking to heaven for guidance.

/Bevin

Top
#127478 - 05/30/07 03:05 PM Re: Interesting pic of the day [Re: bevin]
D. Allan Moderator Offline
Panning for gold

Registered: 08/28/00
Posts: 3855
Loc: les Etats-Unis d'Amerique
I sympathize with her. At that age I felt the same way!

When asked my age I may give it in hexadecimal from now on. It sounds better to say I'm 41 (rather than 65). Is that correct? 4x16=64; 64+1=65. Two more months I'll be 42. :)

Top
#129460 - 06/12/07 07:42 PM Re: Interesting pic of the day [Re: bevin]
Jeannieb43 Offline
Princess of Pasadena

Registered: 12/29/01
Posts: 2420
Loc: California
THANK you, Bevin, for that explanation!

I never learned ANYthing about hexadecimals [or whatever they're called]. This is fascinating.
_________________________
Jeannie


...Change is inevitable; growth is optional....

Top
Page 2 of 2 < 1 2


Moderator:  D. Allan 
Vegefood store

Be sure to click on the free shipping at the checkout else you get charged.



Who's Online
8 Registered (Bravus, dgrimm60, Fausto, Gregory Matthews, John317, Kountzer, Robert, 1 invisible), 29 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

The Chat Room

Come Chat with others,
open 24/7

Newest Members
sunflower0475, Johnny J, 5 do 12, rara171, dotblue
2866 Registered Users
Top Posters
Amelia 17915
Shane 15832
Robert 14498
Gail 13249
Neil D 12117
John317 7703
Gerry Cabalo 7232
Naomi 7196
Gregory Matthews 7071
Redwood 6960
Bravus 6273
Nan 5849
Shirley 5292
ChildofChrist 5044
Forum Stats
2866 Members
136 Forums
16908 Topics
158206 Posts

Max Online: 1237 @ 04/20/07 08:43 PM
30 days FREE

To become a full member, and view more forums. Please contact Stan, if you live in a developing Country or have other financial hardships, for a scholarship.
This income helps pay for hosting, advertising, domain names, software support etc etc
IF YOUR COUNTRY IS NOT LISTED OR IF YOU LIVE IN THE UNITED STATES

- - - - - - - - - - -

IF YOU LIVE IN NEW ZEALAND

- - - - - - - - - - -

IF YOU LIVE IN AUSTRALIA

- - - - - - - - - - -

IF YOU LIVE IN GREAT BRITAIN

- - - - - - - - - - -

IF YOU LIVE IN EUROPE

- - - - - - - - - - -

LIVE IN MEXICO

* * * NEW * * * NEW * * * NEW * * *