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: 17206
Loc: Out standing in a field
you lost me at 12 = 18
_________________________
"The wealth of a man is measured by what he can do without." ---Henry David Thoreau

" 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: 3431
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: 2226
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 
The Chat Room

Come Chat with others,
open 24/7

Who's Online
5 Registered (cubensis, John317, Kountzer, Nan, Robert), 61 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Vegefood store

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

The world's largest marketplace for books

30 days FREE then only $3.50 per month for FULL membership. Cancel at any time.
Access even more forums by becoming a full member!

- - - - - - - - - - -

* * * NEW * * * NEW * * * NEW * * *
Newest Members
Cakrabirawa, happyislandgirl, rush4hire, love le, benny
2680 Registered Users
Adventist Ministries











l

Stuff...
macbook,apple macbook,refurbished macbook, Hosting trusted by over 7 million customers
Forum Stats
2680 Members
130 Forums
16119 Topics
146915 Posts

Max Online: 1237 @ 04/20/07 08:43 PM
Top Posters
Amelia 17206
Shane 15004
Robert 14034
Gail 12878
Neil D 11499
Naomi 7146
Gregory Matthews 7057
Gerry Cabalo 7050
Redwood 5953
Bravus 5719
John317 5656
Nan 5648
Shirley 5292
ChildofChrist 4959