RE: A86: HEX Conversion


[Prev][Next][Index][Thread]

RE: A86: HEX Conversion




Think back to grade school.

In decimal (base-10), you have several places.

hundreds place, tens place, ones place

Consider the number 6.

You have 6 ones (6*1).  That's six.

Now consider the number 26.

You have 2 tens (2*10) and 6 (6*1) ones.  That's twenty-six.

In hexadecimal, you also have several places.

(four thousand ninty-sixes place, two hundred fifty-sixes place,) sixteens
place, ones place (but we'll just worry about the lowest two).

So, sixteens and ones place.

Consider the numbers 5 and C.

You have 5 ones (5*1), that's five.  You have C ones (12*1), that's twelve.

Now consider the number $26.

You have 2 sixteens (2*16=32) and 6 ones (6*1).  That's 38.

Now consider the number $FF.

You have F sixteens (15*16=240) and F ones (15*1).  That's 255 (the largest
two-digit hex number).

All of this (especially the large hex places) was verified by my TI-36X.

Understand?  I hope so!  There are lots of ways of explaining it, but no one
does it this way.  This was what I learned in school when I had to learn to
count, and I always thought that if hex had been explained to me like this,
I would have got it, instead of wondering about it for 2 years.  I was very
upset when I was 15 and actually got it.  Three years later, it's a synch.
Don't worry, it gets easier to understand.

-----
Stuntman (Nathan Haines) - ICQ UIN#: 2157863
http://table.jps.net/~stuntman/nathan.html
QuickBASIC/Visual BASIC/TI-BASIC programmer (just your basic programmer)
President of Stuntworks - http://www.jps.net/stuntman/


> -----Original Message-----
> From: owner-assembly-86@lists.ticalc.org
> [mailto:owner-assembly-86@lists.ticalc.org]On Behalf Of UnEven Software
> Sent: Friday, December 11, 1998 10:56 PM
> To: assembly-86@lists.ticalc.org
> Subject: A86: HEX Conversion
>
>
>
> About 2 weeks ago I asked if someone could explain how to convert HEX
> numbers to decimal numbers.  Someone posted a routine to do this however
> what I wanted is how you actually do it.  Some sort of explanation on
> how to look at 3f and say "hmm thats 13" (or whatever that may be).  I
> know 1=1 (duh) 2=2 ... a=11 b=12 (right?) but how do you use the two
> together?  Is it the first times the second?  The first plus the second?
> If someone could explain this (NOT write a routine) I'd be thankful.
>
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>


References: