HEX help
Archiver
Posts: 46,084
This might sound like a stupid question, but.
What is the hexadecimal number system?
how dose it work?
and how do i turn it to our number system?
thank you
tony
What is the hexadecimal number system?
how dose it work?
and how do i turn it to our number system?
thank you
tony
Comments
base 10 ...
Each hex digit has a value of 0-9 or a-f.
0-9 hex have the same value as decimal 0-9. (a-f) have a decimal equivaluent
value of 10-15.
Thus, one hex digit has a decimal value of 0-15
To convert a hex number to decimal "by hand", remember that each "column" is
16 times the value of the column to it's immeditate right.
In decimal terms, remeber the one's tens' hundreds' column? Hex has the same
idea, but it's all based on base 16...
So, we have the "one's" column then the 16's column then the 256 column....
So, lets convert a hex number like '0ABC'...
A=10 ---> * 256 = 2560
B=11 ---> * 16 = 176
C=12 ----> *1 =12
Now add it all up, 2560 + 176 + 12 = 2748
So hex ABC = 2748 decimal.
---
Further examination of numbering systems show that Christmas and Hallowe'en
actually occur on the same day!!! Considering the Octal (bas 8) number
system we see that OCT 31 = DEC 25 !! :-)
QED. :-)
---
Don Russell
---
Original Message
From: <aconti@n...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 6:15 PM
Subject: [noparse][[/noparse]basicstamps] HEX help
> This might sound like a stupid question, but.
>
> What is the hexadecimal number system?
>
> how dose it work?
>
> and how do i turn it to our number system?
>
> thank you
> tony
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
then A-f. 0 represents 0, F represents 15. Then, like a base 10 numbering
system, you increase the leftmost digit and keep going. The decimal digit
places are (counting from right to left, as in base 10)
16^0 (or 1) = 0x00001
16^1 (or 16) = 0x00010
16^2 (or 256) = 0x00100
16^3 (or 4096) = 0x01000
16^4 (or 65536) = 0x10000
0 = 0
F = 15
10 = 16 (1 in the '16' place, 0 in the 1 place)
1f = 31
90 = 144 (9 in the '16' place, 0 in the 1 place)
C0 = 192 (12 in the '16' place)
F0 = 240 (15 in the '16' place)
FF = 255 (15 in the '16' place, 15 in the 1 place)
100 = 256 (1 in the '256' place)
400 = 1024 (4 in the '256' place)
Conversion to decimal is translating each 'digit' to its place number (0-9
are always 9, A is 10, B is 11, C is 12) and multiplying it by the value
of the place, so
F4 = F's place times 16 plus 4's place times 1 == 15*16+4 = 244
1f3E = 1 * 4096 + 15 * 256 + 3 * 16 + 1 = 7985
On Tue, 27 Mar 2001 aconti@n... wrote:
> This might sound like a stupid question, but.
>
> What is the hexadecimal number system?
>
> how dose it work?
>
> and how do i turn it to our number system?
>
> thank you
> tony
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
Good tip though....
---
Don Russell
---
Original Message
From: "Jim Szymczak" <szymczak@c...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 6:43 PM
Subject: Re: [noparse][[/noparse]basicstamps] HEX help
> If you dont wan to have to think too hard, type the number in the windows
> scientific calculator (watch your mode ie dec oct hex bin) and then switch
> the radio button to the base desired and whammo! you just got out of doing
> the math [noparse]:)[/noparse]
>
>
Original Message
> From: "Don Russell" <drussel2@s...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, March 26, 2001 9:26 PM
> Subject: Re: [noparse][[/noparse]basicstamps] HEX help
>
>
> > Hexadecimal uses a base 16 numbering system instead of the more familiar
> > base 10 ...
> >
> > Each hex digit has a value of 0-9 or a-f.
> > 0-9 hex have the same value as decimal 0-9. (a-f) have a decimal
> equivaluent
> > value of 10-15.
> > Thus, one hex digit has a decimal value of 0-15
> >
> > To convert a hex number to decimal "by hand", remember that each
"column"
> is
> > 16 times the value of the column to it's immeditate right.
> >
> > In decimal terms, remeber the one's tens' hundreds' column? Hex has the
> same
> > idea, but it's all based on base 16...
> >
> > So, we have the "one's" column then the 16's column then the 256
> column....
> >
> > So, lets convert a hex number like '0ABC'...
> >
> > A=10 ---> * 256 = 2560
> > B=11 ---> * 16 = 176
> > C=12 ----> *1 =12
> >
> > Now add it all up, 2560 + 176 + 12 = 2748
> >
> > So hex ABC = 2748 decimal.
> >
> > ---
> >
> > Further examination of numbering systems show that Christmas and
> Hallowe'en
> > actually occur on the same day!!! Considering the Octal (bas 8) number
> > system we see that OCT 31 = DEC 25 !! :-)
> >
> > QED. :-)
> >
> >
> >
> >
> >
> > ---
> > Don Russell
> > ---
> >
Original Message
> > From: <aconti@n...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Monday, March 26, 2001 6:15 PM
> > Subject: [noparse][[/noparse]basicstamps] HEX help
> >
> >
> > > This might sound like a stupid question, but.
> > >
> > > What is the hexadecimal number system?
> > >
> > > how dose it work?
> > >
> > > and how do i turn it to our number system?
> > >
> > > thank you
> > > tony
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
--- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> Hexadecimal uses a base 16 numbering system instead of the more
familiar
> base 10 ...
>
> Each hex digit has a value of 0-9 or a-f.
> 0-9 hex have the same value as decimal 0-9. (a-f) have a decimal
equivaluent
> value of 10-15.
> Thus, one hex digit has a decimal value of 0-15
>
> To convert a hex number to decimal "by hand", remember that
each "column" is
> 16 times the value of the column to it's immeditate right.
>
> In decimal terms, remeber the one's tens' hundreds' column? Hex has
the same
> idea, but it's all based on base 16...
>
> So, we have the "one's" column then the 16's column then the 256
column....
>
> So, lets convert a hex number like '0ABC'...
>
> A=10 ---> * 256 = 2560
> B=11 ---> * 16 = 176
> C=12 ----> *1 =12
>
> Now add it all up, 2560 + 176 + 12 = 2748
>
> So hex ABC = 2748 decimal.
>
> ---
>
> Further examination of numbering systems show that Christmas and
Hallowe'en
> actually occur on the same day!!! Considering the Octal (bas 8)
number
> system we see that OCT 31 = DEC 25 !! :-)
>
> QED. :-)
>
>
>
>
>
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@y...>
> Sent: Monday, March 26, 2001 6:15 PM
> Subject: [noparse][[/noparse]basicstamps] HEX help
>
>
> > This might sound like a stupid question, but.
> >
> > What is the hexadecimal number system?
> >
> > how dose it work?
> >
> > and how do i turn it to our number system?
> >
> > thank you
> > tony
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
scientific calculator (watch your mode ie dec oct hex bin) and then switch
the radio button to the base desired and whammo! you just got out of doing
the math [noparse]:)[/noparse]
Original Message
From: "Don Russell" <drussel2@s...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 9:26 PM
Subject: Re: [noparse][[/noparse]basicstamps] HEX help
> Hexadecimal uses a base 16 numbering system instead of the more familiar
> base 10 ...
>
> Each hex digit has a value of 0-9 or a-f.
> 0-9 hex have the same value as decimal 0-9. (a-f) have a decimal
equivaluent
> value of 10-15.
> Thus, one hex digit has a decimal value of 0-15
>
> To convert a hex number to decimal "by hand", remember that each "column"
is
> 16 times the value of the column to it's immeditate right.
>
> In decimal terms, remeber the one's tens' hundreds' column? Hex has the
same
> idea, but it's all based on base 16...
>
> So, we have the "one's" column then the 16's column then the 256
column....
>
> So, lets convert a hex number like '0ABC'...
>
> A=10 ---> * 256 = 2560
> B=11 ---> * 16 = 176
> C=12 ----> *1 =12
>
> Now add it all up, 2560 + 176 + 12 = 2748
>
> So hex ABC = 2748 decimal.
>
> ---
>
> Further examination of numbering systems show that Christmas and
Hallowe'en
> actually occur on the same day!!! Considering the Octal (bas 8) number
> system we see that OCT 31 = DEC 25 !! :-)
>
> QED. :-)
>
>
>
>
>
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, March 26, 2001 6:15 PM
> Subject: [noparse][[/noparse]basicstamps] HEX help
>
>
> > This might sound like a stupid question, but.
> >
> > What is the hexadecimal number system?
> >
> > how dose it work?
> >
> > and how do i turn it to our number system?
> >
> > thank you
> > tony
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
the point of balancingmy checkbook when I wrote a check for $38, deducting
it from my current of 190. and got...
190
- 38
158
oops, you KNOW you're working too many hours when that happens. lol ;-)
Seriously though, give me an example of exactly what you want to do... I
thought my description (below) did show how to convert hex to decimal....
---
Don Russell
---
Original Message
From: <aconti@n...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 6:38 PM
Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> ok, i under stand how to get to hex, but how do i get to our numbers?
>
>
> --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > Hexadecimal uses a base 16 numbering system instead of the more
> familiar
> > base 10 ...
> >
> > Each hex digit has a value of 0-9 or a-f.
> > 0-9 hex have the same value as decimal 0-9. (a-f) have a decimal
> equivaluent
> > value of 10-15.
> > Thus, one hex digit has a decimal value of 0-15
> >
> > To convert a hex number to decimal "by hand", remember that
> each "column" is
> > 16 times the value of the column to it's immeditate right.
> >
> > In decimal terms, remeber the one's tens' hundreds' column? Hex has
> the same
> > idea, but it's all based on base 16...
> >
> > So, we have the "one's" column then the 16's column then the 256
> column....
> >
> > So, lets convert a hex number like '0ABC'...
> >
> > A=10 ---> * 256 = 2560
> > B=11 ---> * 16 = 176
> > C=12 ----> *1 =12
> >
> > Now add it all up, 2560 + 176 + 12 = 2748
> >
> > So hex ABC = 2748 decimal.
> >
> > ---
> >
> > Further examination of numbering systems show that Christmas and
> Hallowe'en
> > actually occur on the same day!!! Considering the Octal (bas 8)
> number
> > system we see that OCT 31 = DEC 25 !! :-)
> >
> > QED. :-)
> >
> >
> >
> >
> >
> > ---
> > Don Russell
> > ---
> >
Original Message
> > From: <aconti@n...>
> > To: <basicstamps@y...>
> > Sent: Monday, March 26, 2001 6:15 PM
> > Subject: [noparse][[/noparse]basicstamps] HEX help
> >
> >
> > > This might sound like a stupid question, but.
> > >
> > > What is the hexadecimal number system?
> > >
> > > how dose it work?
> > >
> > > and how do i turn it to our number system?
> > >
> > > thank you
> > > tony
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
tony
--- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> *our* numbers? ;-) But these ARE our numbers... I use hex
everyday.... to
> the point of balancingmy checkbook when I wrote a check for $38,
deducting
> it from my current of 190. and got...
> 190
> - 38
>
> 158
>
> oops, you KNOW you're working too many hours when that happens.
lol ;-)
>
> Seriously though, give me an example of exactly what you want to
do... I
> thought my description (below) did show how to convert hex to
decimal....
>
>
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@y...>
> Sent: Monday, March 26, 2001 6:38 PM
> Subject: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> > ok, i under stand how to get to hex, but how do i get to our
numbers?
> >
> >
> > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > Hexadecimal uses a base 16 numbering system instead of the more
> > familiar
> > > base 10 ...
> > >
> > > Each hex digit has a value of 0-9 or a-f.
> > > 0-9 hex have the same value as decimal 0-9. (a-f) have a decimal
> > equivaluent
> > > value of 10-15.
> > > Thus, one hex digit has a decimal value of 0-15
> > >
> > > To convert a hex number to decimal "by hand", remember that
> > each "column" is
> > > 16 times the value of the column to it's immeditate right.
> > >
> > > In decimal terms, remeber the one's tens' hundreds' column? Hex
has
> > the same
> > > idea, but it's all based on base 16...
> > >
> > > So, we have the "one's" column then the 16's column then the 256
> > column....
> > >
> > > So, lets convert a hex number like '0ABC'...
> > >
> > > A=10 ---> * 256 = 2560
> > > B=11 ---> * 16 = 176
> > > C=12 ----> *1 =12
> > >
> > > Now add it all up, 2560 + 176 + 12 = 2748
> > >
> > > So hex ABC = 2748 decimal.
> > >
> > > ---
> > >
> > > Further examination of numbering systems show that Christmas and
> > Hallowe'en
> > > actually occur on the same day!!! Considering the Octal (bas 8)
> > number
> > > system we see that OCT 31 = DEC 25 !! :-)
> > >
> > > QED. :-)
> > >
> > >
> > >
> > >
> > >
> > > ---
> > > Don Russell
> > > ---
> > >
Original Message
> > > From: <aconti@n...>
> > > To: <basicstamps@y...>
> > > Sent: Monday, March 26, 2001 6:15 PM
> > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > >
> > >
> > > > This might sound like a stupid question, but.
> > > >
> > > > What is the hexadecimal number system?
> > > >
> > > > how dose it work?
> > > >
> > > > and how do i turn it to our number system?
> > > >
> > > > thank you
> > > > tony
> > > >
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
going back to the basic of the ones column and the 16's column....
there is 1 in the 16's column: 1* 16 = 16
there is 15 in the 1's column: 15* 1 = 15
Add up the two ... 16 + 15 = 31
x1F = 31 decimal
---
Don Russell
---
Original Message
From: <aconti@n...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 7:26 PM
Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> don, how about 1F.
>
> tony
>
>
> --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > *our* numbers? ;-) But these ARE our numbers... I use hex
> everyday.... to
> > the point of balancingmy checkbook when I wrote a check for $38,
> deducting
> > it from my current of 190. and got...
> > 190
> > - 38
> >
> > 158
> >
> > oops, you KNOW you're working too many hours when that happens.
> lol ;-)
> >
> > Seriously though, give me an example of exactly what you want to
> do... I
> > thought my description (below) did show how to convert hex to
> decimal....
> >
> >
> > ---
> > Don Russell
> > ---
> >
Original Message
> > From: <aconti@n...>
> > To: <basicstamps@y...>
> > Sent: Monday, March 26, 2001 6:38 PM
> > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> >
> >
> > > ok, i under stand how to get to hex, but how do i get to our
> numbers?
> > >
> > >
> > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > Hexadecimal uses a base 16 numbering system instead of the more
> > > familiar
> > > > base 10 ...
> > > >
> > > > Each hex digit has a value of 0-9 or a-f.
> > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a decimal
> > > equivaluent
> > > > value of 10-15.
> > > > Thus, one hex digit has a decimal value of 0-15
> > > >
> > > > To convert a hex number to decimal "by hand", remember that
> > > each "column" is
> > > > 16 times the value of the column to it's immeditate right.
> > > >
> > > > In decimal terms, remeber the one's tens' hundreds' column? Hex
> has
> > > the same
> > > > idea, but it's all based on base 16...
> > > >
> > > > So, we have the "one's" column then the 16's column then the 256
> > > column....
> > > >
> > > > So, lets convert a hex number like '0ABC'...
> > > >
> > > > A=10 ---> * 256 = 2560
> > > > B=11 ---> * 16 = 176
> > > > C=12 ----> *1 =12
> > > >
> > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > >
> > > > So hex ABC = 2748 decimal.
> > > >
> > > > ---
> > > >
> > > > Further examination of numbering systems show that Christmas and
> > > Hallowe'en
> > > > actually occur on the same day!!! Considering the Octal (bas 8)
> > > number
> > > > system we see that OCT 31 = DEC 25 !! :-)
> > > >
> > > > QED. :-)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ---
> > > > Don Russell
> > > > ---
> > > >
Original Message
> > > > From: <aconti@n...>
> > > > To: <basicstamps@y...>
> > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > >
> > > >
> > > > > This might sound like a stupid question, but.
> > > > >
> > > > > What is the hexadecimal number system?
> > > > >
> > > > > how dose it work?
> > > > >
> > > > > and how do i turn it to our number system?
> > > > >
> > > > > thank you
> > > > > tony
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
thank you
--- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> OK, 1F hex....
>
> going back to the basic of the ones column and the 16's column....
>
> there is 1 in the 16's column: 1* 16 = 16
> there is 15 in the 1's column: 15* 1 = 15
>
> Add up the two ... 16 + 15 = 31
>
> x1F = 31 decimal
>
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@y...>
> Sent: Monday, March 26, 2001 7:26 PM
> Subject: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> > don, how about 1F.
> >
> > tony
> >
> >
> > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > *our* numbers? ;-) But these ARE our numbers... I use hex
> > everyday.... to
> > > the point of balancingmy checkbook when I wrote a check for $38,
> > deducting
> > > it from my current of 190. and got...
> > > 190
> > > - 38
> > >
> > > 158
> > >
> > > oops, you KNOW you're working too many hours when that happens.
> > lol ;-)
> > >
> > > Seriously though, give me an example of exactly what you want to
> > do... I
> > > thought my description (below) did show how to convert hex to
> > decimal....
> > >
> > >
> > > ---
> > > Don Russell
> > > ---
> > >
Original Message
> > > From: <aconti@n...>
> > > To: <basicstamps@y...>
> > > Sent: Monday, March 26, 2001 6:38 PM
> > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > >
> > >
> > > > ok, i under stand how to get to hex, but how do i get to our
> > numbers?
> > > >
> > > >
> > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > Hexadecimal uses a base 16 numbering system instead of the
more
> > > > familiar
> > > > > base 10 ...
> > > > >
> > > > > Each hex digit has a value of 0-9 or a-f.
> > > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a
decimal
> > > > equivaluent
> > > > > value of 10-15.
> > > > > Thus, one hex digit has a decimal value of 0-15
> > > > >
> > > > > To convert a hex number to decimal "by hand", remember that
> > > > each "column" is
> > > > > 16 times the value of the column to it's immeditate right.
> > > > >
> > > > > In decimal terms, remeber the one's tens' hundreds' column?
Hex
> > has
> > > > the same
> > > > > idea, but it's all based on base 16...
> > > > >
> > > > > So, we have the "one's" column then the 16's column then
the 256
> > > > column....
> > > > >
> > > > > So, lets convert a hex number like '0ABC'...
> > > > >
> > > > > A=10 ---> * 256 = 2560
> > > > > B=11 ---> * 16 = 176
> > > > > C=12 ----> *1 =12
> > > > >
> > > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > > >
> > > > > So hex ABC = 2748 decimal.
> > > > >
> > > > > ---
> > > > >
> > > > > Further examination of numbering systems show that
Christmas and
> > > > Hallowe'en
> > > > > actually occur on the same day!!! Considering the Octal
(bas 8)
> > > > number
> > > > > system we see that OCT 31 = DEC 25 !! :-)
> > > > >
> > > > > QED. :-)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ---
> > > > > Don Russell
> > > > > ---
> > > > >
Original Message
> > > > > From: <aconti@n...>
> > > > > To: <basicstamps@y...>
> > > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > > >
> > > > >
> > > > > > This might sound like a stupid question, but.
> > > > > >
> > > > > > What is the hexadecimal number system?
> > > > > >
> > > > > > how dose it work?
> > > > > >
> > > > > > and how do i turn it to our number system?
> > > > > >
> > > > > > thank you
> > > > > > tony
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
and just for the sake of completeness... when the leftmost hex digit has the
highorder bit on (8 or higher) I usually put a 0 infront of it all to
emphasize the number is positive.
So in your example of A4F hex... that may be a negative number depending on
context... 0A4F is never negative....
That's because the first bit of a hex number is often used as a sign
value.... this is why a two byte signed field can't have a value exceeding
32767 decimal, because as soon as you go past that you get into the negative
number range. 32768 = 8000x
---
Don Russell
---
Original Message
From: <aconti@n...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 7:35 PM
Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> OHHH, Ok, now i see. so A4F=2639.
> thank you
>
>
> --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > OK, 1F hex....
> >
> > going back to the basic of the ones column and the 16's column....
> >
> > there is 1 in the 16's column: 1* 16 = 16
> > there is 15 in the 1's column: 15* 1 = 15
> >
> > Add up the two ... 16 + 15 = 31
> >
> > x1F = 31 decimal
> >
> > ---
> > Don Russell
> > ---
> >
Original Message
> > From: <aconti@n...>
> > To: <basicstamps@y...>
> > Sent: Monday, March 26, 2001 7:26 PM
> > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> >
> >
> > > don, how about 1F.
> > >
> > > tony
> > >
> > >
> > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > *our* numbers? ;-) But these ARE our numbers... I use hex
> > > everyday.... to
> > > > the point of balancingmy checkbook when I wrote a check for $38,
> > > deducting
> > > > it from my current of 190. and got...
> > > > 190
> > > > - 38
> > > >
> > > > 158
> > > >
> > > > oops, you KNOW you're working too many hours when that happens.
> > > lol ;-)
> > > >
> > > > Seriously though, give me an example of exactly what you want to
> > > do... I
> > > > thought my description (below) did show how to convert hex to
> > > decimal....
> > > >
> > > >
> > > > ---
> > > > Don Russell
> > > > ---
> > > >
Original Message
> > > > From: <aconti@n...>
> > > > To: <basicstamps@y...>
> > > > Sent: Monday, March 26, 2001 6:38 PM
> > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > >
> > > >
> > > > > ok, i under stand how to get to hex, but how do i get to our
> > > numbers?
> > > > >
> > > > >
> > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > > Hexadecimal uses a base 16 numbering system instead of the
> more
> > > > > familiar
> > > > > > base 10 ...
> > > > > >
> > > > > > Each hex digit has a value of 0-9 or a-f.
> > > > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a
> decimal
> > > > > equivaluent
> > > > > > value of 10-15.
> > > > > > Thus, one hex digit has a decimal value of 0-15
> > > > > >
> > > > > > To convert a hex number to decimal "by hand", remember that
> > > > > each "column" is
> > > > > > 16 times the value of the column to it's immeditate right.
> > > > > >
> > > > > > In decimal terms, remeber the one's tens' hundreds' column?
> Hex
> > > has
> > > > > the same
> > > > > > idea, but it's all based on base 16...
> > > > > >
> > > > > > So, we have the "one's" column then the 16's column then
> the 256
> > > > > column....
> > > > > >
> > > > > > So, lets convert a hex number like '0ABC'...
> > > > > >
> > > > > > A=10 ---> * 256 = 2560
> > > > > > B=11 ---> * 16 = 176
> > > > > > C=12 ----> *1 =12
> > > > > >
> > > > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > > > >
> > > > > > So hex ABC = 2748 decimal.
> > > > > >
> > > > > > ---
> > > > > >
> > > > > > Further examination of numbering systems show that
> Christmas and
> > > > > Hallowe'en
> > > > > > actually occur on the same day!!! Considering the Octal
> (bas 8)
> > > > > number
> > > > > > system we see that OCT 31 = DEC 25 !! :-)
> > > > > >
> > > > > > QED. :-)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ---
> > > > > > Don Russell
> > > > > > ---
> > > > > >
Original Message
> > > > > > From: <aconti@n...>
> > > > > > To: <basicstamps@y...>
> > > > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > > > >
> > > > > >
> > > > > > > This might sound like a stupid question, but.
> > > > > > >
> > > > > > > What is the hexadecimal number system?
> > > > > > >
> > > > > > > how dose it work?
> > > > > > >
> > > > > > > and how do i turn it to our number system?
> > > > > > >
> > > > > > > thank you
> > > > > > > tony
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Your use of Yahoo! Groups is subject to
> > > > > http://docs.yahoo.com/info/terms/
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
max val?
that is way bigger than 32767, and it is not a neg. number.
tony
--- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> yup yup yup... you got it...
>
> and just for the sake of completeness... when the leftmost hex
digit has the
> highorder bit on (8 or higher) I usually put a 0 infront of it all
to
> emphasize the number is positive.
>
> So in your example of A4F hex... that may be a negative number
depending on
> context... 0A4F is never negative....
>
> That's because the first bit of a hex number is often used as a sign
> value.... this is why a two byte signed field can't have a value
exceeding
> 32767 decimal, because as soon as you go past that you get into the
negative
> number range. 32768 = 8000x
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@y...>
> Sent: Monday, March 26, 2001 7:35 PM
> Subject: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> > OHHH, Ok, now i see. so A4F=2639.
> > thank you
> >
> >
> > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > OK, 1F hex....
> > >
> > > going back to the basic of the ones column and the 16's
column....
> > >
> > > there is 1 in the 16's column: 1* 16 = 16
> > > there is 15 in the 1's column: 15* 1 = 15
> > >
> > > Add up the two ... 16 + 15 = 31
> > >
> > > x1F = 31 decimal
> > >
> > > ---
> > > Don Russell
> > > ---
> > >
Original Message
> > > From: <aconti@n...>
> > > To: <basicstamps@y...>
> > > Sent: Monday, March 26, 2001 7:26 PM
> > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > >
> > >
> > > > don, how about 1F.
> > > >
> > > > tony
> > > >
> > > >
> > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > *our* numbers? ;-) But these ARE our numbers... I use hex
> > > > everyday.... to
> > > > > the point of balancingmy checkbook when I wrote a check for
$38,
> > > > deducting
> > > > > it from my current of 190. and got...
> > > > > 190
> > > > > - 38
> > > > >
> > > > > 158
> > > > >
> > > > > oops, you KNOW you're working too many hours when that
happens.
> > > > lol ;-)
> > > > >
> > > > > Seriously though, give me an example of exactly what you
want to
> > > > do... I
> > > > > thought my description (below) did show how to convert hex
to
> > > > decimal....
> > > > >
> > > > >
> > > > > ---
> > > > > Don Russell
> > > > > ---
> > > > >
Original Message
> > > > > From: <aconti@n...>
> > > > > To: <basicstamps@y...>
> > > > > Sent: Monday, March 26, 2001 6:38 PM
> > > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > > >
> > > > >
> > > > > > ok, i under stand how to get to hex, but how do i get to
our
> > > > numbers?
> > > > > >
> > > > > >
> > > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...>
wrote:
> > > > > > > Hexadecimal uses a base 16 numbering system instead of
the
> > more
> > > > > > familiar
> > > > > > > base 10 ...
> > > > > > >
> > > > > > > Each hex digit has a value of 0-9 or a-f.
> > > > > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a
> > decimal
> > > > > > equivaluent
> > > > > > > value of 10-15.
> > > > > > > Thus, one hex digit has a decimal value of 0-15
> > > > > > >
> > > > > > > To convert a hex number to decimal "by hand", remember
that
> > > > > > each "column" is
> > > > > > > 16 times the value of the column to it's immeditate
right.
> > > > > > >
> > > > > > > In decimal terms, remeber the one's tens' hundreds'
column?
> > Hex
> > > > has
> > > > > > the same
> > > > > > > idea, but it's all based on base 16...
> > > > > > >
> > > > > > > So, we have the "one's" column then the 16's column then
> > the 256
> > > > > > column....
> > > > > > >
> > > > > > > So, lets convert a hex number like '0ABC'...
> > > > > > >
> > > > > > > A=10 ---> * 256 = 2560
> > > > > > > B=11 ---> * 16 = 176
> > > > > > > C=12 ----> *1 =12
> > > > > > >
> > > > > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > > > > >
> > > > > > > So hex ABC = 2748 decimal.
> > > > > > >
> > > > > > > ---
> > > > > > >
> > > > > > > Further examination of numbering systems show that
> > Christmas and
> > > > > > Hallowe'en
> > > > > > > actually occur on the same day!!! Considering the Octal
> > (bas 8)
> > > > > > number
> > > > > > > system we see that OCT 31 = DEC 25 !! :-)
> > > > > > >
> > > > > > > QED. :-)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ---
> > > > > > > Don Russell
> > > > > > > ---
> > > > > > >
Original Message
> > > > > > > From: <aconti@n...>
> > > > > > > To: <basicstamps@y...>
> > > > > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > > > > >
> > > > > > >
> > > > > > > > This might sound like a stupid question, but.
> > > > > > > >
> > > > > > > > What is the hexadecimal number system?
> > > > > > > >
> > > > > > > > how dose it work?
> > > > > > > >
> > > > > > > > and how do i turn it to our number system?
> > > > > > > >
> > > > > > > > thank you
> > > > > > > > tony
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > http://docs.yahoo.com/info/terms/
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
shouldn't have brought it up) :-)
So, yes the 2 byte field can hold a decimal value from 0 to 65535.
The range is actually the same, a two byte field may have 65536 different
values.... x0001 x0002 ... xffff
HOW those values are interpretted is a matter of convention and context.
Think of the ol' numberline from high school math.... put a mark at any
point, and another mark on any other point exactly 65535 units "away"....
now think of that area between the marks as a "slide" on the number
scale.... you can represent the decimal numbers 0-65535, or -1 to 65534,
or -2 to 65533 etc.... but usually when a number is "signed" the range of
+/- number is pretty much equal.
I haven't done enough with the BS chips to know if they do signed arithmetic
or not....
Consider a 1 byte value.... x'30'
What is x'30'.... answer: It depends (context ALWAYS matters)
it's decimal 48 (3 * 16)
it's a character zero if it's being displayed on an ascii device
---
Don Russell
---
Original Message
From: <aconti@n...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 7:56 PM
Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> then why dose the BS programming manual (V2.0c) have FFFF=65535 as a
> max val?
> that is way bigger than 32767, and it is not a neg. number.
>
> tony
>
>
> --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > yup yup yup... you got it...
> >
> > and just for the sake of completeness... when the leftmost hex
> digit has the
> > highorder bit on (8 or higher) I usually put a 0 infront of it all
> to
> > emphasize the number is positive.
> >
> > So in your example of A4F hex... that may be a negative number
> depending on
> > context... 0A4F is never negative....
> >
> > That's because the first bit of a hex number is often used as a sign
> > value.... this is why a two byte signed field can't have a value
> exceeding
> > 32767 decimal, because as soon as you go past that you get into the
> negative
> > number range. 32768 = 8000x
> > ---
> > Don Russell
> > ---
> >
Original Message
> > From: <aconti@n...>
> > To: <basicstamps@y...>
> > Sent: Monday, March 26, 2001 7:35 PM
> > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> >
> >
> > > OHHH, Ok, now i see. so A4F=2639.
> > > thank you
> > >
> > >
> > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > OK, 1F hex....
> > > >
> > > > going back to the basic of the ones column and the 16's
> column....
> > > >
> > > > there is 1 in the 16's column: 1* 16 = 16
> > > > there is 15 in the 1's column: 15* 1 = 15
> > > >
> > > > Add up the two ... 16 + 15 = 31
> > > >
> > > > x1F = 31 decimal
> > > >
> > > > ---
> > > > Don Russell
> > > > ---
> > > >
Original Message
> > > > From: <aconti@n...>
> > > > To: <basicstamps@y...>
> > > > Sent: Monday, March 26, 2001 7:26 PM
> > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > >
> > > >
> > > > > don, how about 1F.
> > > > >
> > > > > tony
> > > > >
> > > > >
> > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > > *our* numbers? ;-) But these ARE our numbers... I use hex
> > > > > everyday.... to
> > > > > > the point of balancingmy checkbook when I wrote a check for
> $38,
> > > > > deducting
> > > > > > it from my current of 190. and got...
> > > > > > 190
> > > > > > - 38
> > > > > >
> > > > > > 158
> > > > > >
> > > > > > oops, you KNOW you're working too many hours when that
> happens.
> > > > > lol ;-)
> > > > > >
> > > > > > Seriously though, give me an example of exactly what you
> want to
> > > > > do... I
> > > > > > thought my description (below) did show how to convert hex
> to
> > > > > decimal....
> > > > > >
> > > > > >
> > > > > > ---
> > > > > > Don Russell
> > > > > > ---
> > > > > >
Original Message
> > > > > > From: <aconti@n...>
> > > > > > To: <basicstamps@y...>
> > > > > > Sent: Monday, March 26, 2001 6:38 PM
> > > > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > > > >
> > > > > >
> > > > > > > ok, i under stand how to get to hex, but how do i get to
> our
> > > > > numbers?
> > > > > > >
> > > > > > >
> > > > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...>
> wrote:
> > > > > > > > Hexadecimal uses a base 16 numbering system instead of
> the
> > > more
> > > > > > > familiar
> > > > > > > > base 10 ...
> > > > > > > >
> > > > > > > > Each hex digit has a value of 0-9 or a-f.
> > > > > > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a
> > > decimal
> > > > > > > equivaluent
> > > > > > > > value of 10-15.
> > > > > > > > Thus, one hex digit has a decimal value of 0-15
> > > > > > > >
> > > > > > > > To convert a hex number to decimal "by hand", remember
> that
> > > > > > > each "column" is
> > > > > > > > 16 times the value of the column to it's immeditate
> right.
> > > > > > > >
> > > > > > > > In decimal terms, remeber the one's tens' hundreds'
> column?
> > > Hex
> > > > > has
> > > > > > > the same
> > > > > > > > idea, but it's all based on base 16...
> > > > > > > >
> > > > > > > > So, we have the "one's" column then the 16's column then
> > > the 256
> > > > > > > column....
> > > > > > > >
> > > > > > > > So, lets convert a hex number like '0ABC'...
> > > > > > > >
> > > > > > > > A=10 ---> * 256 = 2560
> > > > > > > > B=11 ---> * 16 = 176
> > > > > > > > C=12 ----> *1 =12
> > > > > > > >
> > > > > > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > > > > > >
> > > > > > > > So hex ABC = 2748 decimal.
> > > > > > > >
> > > > > > > > ---
> > > > > > > >
> > > > > > > > Further examination of numbering systems show that
> > > Christmas and
> > > > > > > Hallowe'en
> > > > > > > > actually occur on the same day!!! Considering the Octal
> > > (bas 8)
> > > > > > > number
> > > > > > > > system we see that OCT 31 = DEC 25 !! :-)
> > > > > > > >
> > > > > > > > QED. :-)
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ---
> > > > > > > > Don Russell
> > > > > > > > ---
> > > > > > > >
Original Message
> > > > > > > > From: <aconti@n...>
> > > > > > > > To: <basicstamps@y...>
> > > > > > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > > > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > > > > > >
> > > > > > > >
> > > > > > > > > This might sound like a stupid question, but.
> > > > > > > > >
> > > > > > > > > What is the hexadecimal number system?
> > > > > > > > >
> > > > > > > > > how dose it work?
> > > > > > > > >
> > > > > > > > > and how do i turn it to our number system?
> > > > > > > > >
> > > > > > > > > thank you
> > > > > > > > > tony
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > > http://docs.yahoo.com/info/terms/
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Your use of Yahoo! Groups is subject to
> > > > > http://docs.yahoo.com/info/terms/
> > > > > > >
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
FFFF + 0001 = 0000 (overflow)
FFFF + 0009 = 0008 (overflow)
FFFF + FFFF = FFFE (-2)
To get the negative number, first write down the unsigned magnitude. Then
invert all the bits and add 1.
So thinking about bytes:
-1 = 00000001 (invert) 11111110 (add 1) 11111111 = FF
-100 = 01100100 (invert) 10011011 (add 1) 10011100 = 9C
etc.
reverse the steps to find the value, so:
FE => 11111110 (subtract 1) 11111101 (invert) 00000010 = 02
Al Williams
AWC
* NEW: PAK-II now computes polynomials!
http://www.al-williams.com/awce/pak1.htm#poly
>
Original Message
> From: Don Russell [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=SaKC9n0cjkf9gFjYQYbsSWnYW7yJKUJWy3uQZopJ04T_SI3nKplLVKRnQ_FUaNRUMBHT7wkGgnRXKkv3ugk]drussel2@s...[/url
> Sent: Monday, March 26, 2001 10:09 PM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> ah... because they don't interpret the high order bit as a sign.... (I
> shouldn't have brought it up) :-)
>
> So, yes the 2 byte field can hold a decimal value from 0 to 65535.
>
> The range is actually the same, a two byte field may have 65536 different
> values.... x0001 x0002 ... xffff
>
> HOW those values are interpretted is a matter of convention and context.
> Think of the ol' numberline from high school math.... put a mark at any
> point, and another mark on any other point exactly 65535 units "away"....
> now think of that area between the marks as a "slide" on the number
> scale.... you can represent the decimal numbers 0-65535, or -1 to 65534,
> or -2 to 65533 etc.... but usually when a number is "signed" the range of
> +/- number is pretty much equal.
>
> I haven't done enough with the BS chips to know if they do signed
> arithmetic
> or not....
>
> Consider a 1 byte value.... x'30'
>
> What is x'30'.... answer: It depends (context ALWAYS matters)
> it's decimal 48 (3 * 16)
> it's a character zero if it's being displayed on an ascii device
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, March 26, 2001 7:56 PM
> Subject: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> > then why dose the BS programming manual (V2.0c) have FFFF=65535 as a
> > max val?
> > that is way bigger than 32767, and it is not a neg. number.
> >
> > tony
> >
> >
> > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > yup yup yup... you got it...
> > >
> > > and just for the sake of completeness... when the leftmost hex
> > digit has the
> > > highorder bit on (8 or higher) I usually put a 0 infront of it all
> > to
> > > emphasize the number is positive.
> > >
> > > So in your example of A4F hex... that may be a negative number
> > depending on
> > > context... 0A4F is never negative....
> > >
> > > That's because the first bit of a hex number is often used as a sign
> > > value.... this is why a two byte signed field can't have a value
> > exceeding
> > > 32767 decimal, because as soon as you go past that you get into the
> > negative
> > > number range. 32768 = 8000x
> > > ---
> > > Don Russell
> > > ---
> > >
Original Message
> > > From: <aconti@n...>
> > > To: <basicstamps@y...>
> > > Sent: Monday, March 26, 2001 7:35 PM
> > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > >
> > >
> > > > OHHH, Ok, now i see. so A4F=2639.
> > > > thank you
> > > >
> > > >
> > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > OK, 1F hex....
> > > > >
> > > > > going back to the basic of the ones column and the 16's
> > column....
> > > > >
> > > > > there is 1 in the 16's column: 1* 16 = 16
> > > > > there is 15 in the 1's column: 15* 1 = 15
> > > > >
> > > > > Add up the two ... 16 + 15 = 31
> > > > >
> > > > > x1F = 31 decimal
> > > > >
> > > > > ---
> > > > > Don Russell
> > > > > ---
> > > > >
Original Message
> > > > > From: <aconti@n...>
> > > > > To: <basicstamps@y...>
> > > > > Sent: Monday, March 26, 2001 7:26 PM
> > > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > > >
> > > > >
> > > > > > don, how about 1F.
> > > > > >
> > > > > > tony
> > > > > >
> > > > > >
> > > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > > > *our* numbers? ;-) But these ARE our numbers... I use hex
> > > > > > everyday.... to
> > > > > > > the point of balancingmy checkbook when I wrote a check for
> > $38,
> > > > > > deducting
> > > > > > > it from my current of 190. and got...
> > > > > > > 190
> > > > > > > - 38
> > > > > > >
> > > > > > > 158
> > > > > > >
> > > > > > > oops, you KNOW you're working too many hours when that
> > happens.
> > > > > > lol ;-)
> > > > > > >
> > > > > > > Seriously though, give me an example of exactly what you
> > want to
> > > > > > do... I
> > > > > > > thought my description (below) did show how to convert hex
> > to
> > > > > > decimal....
> > > > > > >
> > > > > > >
> > > > > > > ---
> > > > > > > Don Russell
> > > > > > > ---
> > > > > > >
Original Message
> > > > > > > From: <aconti@n...>
> > > > > > > To: <basicstamps@y...>
> > > > > > > Sent: Monday, March 26, 2001 6:38 PM
> > > > > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > > > > >
> > > > > > >
> > > > > > > > ok, i under stand how to get to hex, but how do i get to
> > our
> > > > > > numbers?
> > > > > > > >
> > > > > > > >
> > > > > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...>
> > wrote:
> > > > > > > > > Hexadecimal uses a base 16 numbering system instead of
> > the
> > > > more
> > > > > > > > familiar
> > > > > > > > > base 10 ...
> > > > > > > > >
> > > > > > > > > Each hex digit has a value of 0-9 or a-f.
> > > > > > > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a
> > > > decimal
> > > > > > > > equivaluent
> > > > > > > > > value of 10-15.
> > > > > > > > > Thus, one hex digit has a decimal value of 0-15
> > > > > > > > >
> > > > > > > > > To convert a hex number to decimal "by hand", remember
> > that
> > > > > > > > each "column" is
> > > > > > > > > 16 times the value of the column to it's immeditate
> > right.
> > > > > > > > >
> > > > > > > > > In decimal terms, remeber the one's tens' hundreds'
> > column?
> > > > Hex
> > > > > > has
> > > > > > > > the same
> > > > > > > > > idea, but it's all based on base 16...
> > > > > > > > >
> > > > > > > > > So, we have the "one's" column then the 16's column then
> > > > the 256
> > > > > > > > column....
> > > > > > > > >
> > > > > > > > > So, lets convert a hex number like '0ABC'...
> > > > > > > > >
> > > > > > > > > A=10 ---> * 256 = 2560
> > > > > > > > > B=11 ---> * 16 = 176
> > > > > > > > > C=12 ----> *1 =12
> > > > > > > > >
> > > > > > > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > > > > > > >
> > > > > > > > > So hex ABC = 2748 decimal.
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > >
> > > > > > > > > Further examination of numbering systems show that
> > > > Christmas and
> > > > > > > > Hallowe'en
> > > > > > > > > actually occur on the same day!!! Considering the Octal
> > > > (bas 8)
> > > > > > > > number
> > > > > > > > > system we see that OCT 31 = DEC 25 !! :-)
> > > > > > > > >
> > > > > > > > > QED. :-)
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > > Don Russell
> > > > > > > > > ---
> > > > > > > > >
Original Message
> > > > > > > > > From: <aconti@n...>
> > > > > > > > > To: <basicstamps@y...>
> > > > > > > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > > > > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > This might sound like a stupid question, but.
> > > > > > > > > >
> > > > > > > > > > What is the hexadecimal number system?
> > > > > > > > > >
> > > > > > > > > > how dose it work?
> > > > > > > > > >
> > > > > > > > > > and how do i turn it to our number system?
> > > > > > > > > >
> > > > > > > > > > thank you
> > > > > > > > > > tony
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > > > http://docs.yahoo.com/info/terms/
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > http://docs.yahoo.com/info/terms/
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
So the original ranges are correct...
---
Don Russell
---
Original Message
From: "Jim Szymczak" <szymczak@c...>
To: <basicstamps@yahoogroups.com>
Sent: Monday, March 26, 2001 9:28 PM
Subject: Re: [noparse][[/noparse]basicstamps] Re: HEX help
>
> I hate when these conversations get confusing, especially when there is
> someone new trying to learn it, but I'm gunna' say it anyways... if there
> are 65535 possibilities you can represent 0 to 65534 (because 0 counts as
a
> possibility), or -1 to 65533 etc...
> That's all I have to say. (sorry to bring it up [noparse]:)[/noparse]
> Jim
>
>
> > ah... because they don't interpret the high order bit as a sign.... (I
> > shouldn't have brought it up) :-)
> >
> > So, yes the 2 byte field can hold a decimal value from 0 to 65535.
> >
> > The range is actually the same, a two byte field may have 65536
different
> > values.... x0001 x0002 ... xffff
> >
> > HOW those values are interpretted is a matter of convention and context.
> > Think of the ol' numberline from high school math.... put a mark at any
> > point, and another mark on any other point exactly 65535 units
"away"....
> > now think of that area between the marks as a "slide" on the number
> > scale.... you can represent the decimal numbers 0-65535, or -1 to 65534,
> > or -2 to 65533 etc.... but usually when a number is "signed" the range
of
> > +/- number is pretty much equal.
> >
> > I haven't done enough with the BS chips to know if they do signed
> arithmetic
> > or not....
> >
> > Consider a 1 byte value.... x'30'
> >
> > What is x'30'.... answer: It depends (context ALWAYS matters)
> > it's decimal 48 (3 * 16)
> > it's a character zero if it's being displayed on an ascii device
> > ---
> > Don Russell
> > ---
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
someone new trying to learn it, but I'm gunna' say it anyways... if there
are 65535 possibilities you can represent 0 to 65534 (because 0 counts as a
possibility), or -1 to 65533 etc...
That's all I have to say. (sorry to bring it up [noparse]:)[/noparse]
Jim
> ah... because they don't interpret the high order bit as a sign.... (I
> shouldn't have brought it up) :-)
>
> So, yes the 2 byte field can hold a decimal value from 0 to 65535.
>
> The range is actually the same, a two byte field may have 65536 different
> values.... x0001 x0002 ... xffff
>
> HOW those values are interpretted is a matter of convention and context.
> Think of the ol' numberline from high school math.... put a mark at any
> point, and another mark on any other point exactly 65535 units "away"....
> now think of that area between the marks as a "slide" on the number
> scale.... you can represent the decimal numbers 0-65535, or -1 to 65534,
> or -2 to 65533 etc.... but usually when a number is "signed" the range of
> +/- number is pretty much equal.
>
> I haven't done enough with the BS chips to know if they do signed
arithmetic
> or not....
>
> Consider a 1 byte value.... x'30'
>
> What is x'30'.... answer: It depends (context ALWAYS matters)
> it's decimal 48 (3 * 16)
> it's a character zero if it's being displayed on an ascii device
> ---
> Don Russell
> ---
snake with the other guy after I get "dumb college kid" tattooed across my
chest...lol
> laughing... :-) yup... actually there are 65536 posibilities....
0-65535....
>
> So the original ranges are correct...
> ---
> Don Russell
> ---
>
Original Message
> From: "Jim Szymczak" <szymczak@c...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, March 26, 2001 9:28 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> >
> > I hate when these conversations get confusing, especially when there is
> > someone new trying to learn it, but I'm gunna' say it anyways... if
there
> > are 65535 possibilities you can represent 0 to 65534 (because 0 counts
as
> a
> > possibility), or -1 to 65533 etc...
> > That's all I have to say. (sorry to bring it up [noparse]:)[/noparse]
> > Jim
> >
> >
> > > ah... because they don't interpret the high order bit as a sign.... (I
> > > shouldn't have brought it up) :-)
> > >
> > > So, yes the 2 byte field can hold a decimal value from 0 to 65535.
> > >
> > > The range is actually the same, a two byte field may have 65536
> different
> > > values.... x0001 x0002 ... xffff
> > >
> > > HOW those values are interpretted is a matter of convention and
context.
> > > Think of the ol' numberline from high school math.... put a mark at
any
> > > point, and another mark on any other point exactly 65535 units
> "away"....
> > > now think of that area between the marks as a "slide" on the number
> > > scale.... you can represent the decimal numbers 0-65535, or -1 to
65534,
> > > or -2 to 65533 etc.... but usually when a number is "signed" the range
> of
> > > +/- number is pretty much equal.
> > >
> > > I haven't done enough with the BS chips to know if they do signed
> > arithmetic
> > > or not....
> > >
> > > Consider a 1 byte value.... x'30'
> > >
> > > What is x'30'.... answer: It depends (context ALWAYS matters)
> > > it's decimal 48 (3 * 16)
> > > it's a character zero if it's being displayed on an ascii device
> > > ---
> > > Don Russell
> > > ---
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>thank you
>
No one ementioned how cleanly hex is represented in binary and
vice versa.
A4F = 1010 0100 1111 (without the spaces)
Carl
scientific mode.) Have conversions for Decimal, Binary, and Hex. It is
sometimes easiest to use a calculator and change the base units until you
have a good feel for the base you are working in. Just my $0.02 worth.
MH
Original Message
From: <carl@g...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, March 27, 2001 5:36 AM
Subject: Re: [noparse][[/noparse]basicstamps] Re: HEX help
> >OHHH, Ok, now i see. so A4F=2639.
> >thank you
> >
>
> No one ementioned how cleanly hex is represented in binary and
> vice versa.
>
> A4F = 1010 0100 1111 (without the spaces)
>
> Carl
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
but the original question asked HOW does the numbering system work.... So,
as with anything, more than just "enter this, press that" was in order. :-)
---
Don Russell
---
Original Message
From: "Michael Hendricks" <mjh80@b...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, March 27, 2001 2:39 AM
Subject: Re: [noparse][[/noparse]basicstamps] Re: HEX help
> Most calculators (including the calculator included with windows, use
> scientific mode.) Have conversions for Decimal, Binary, and Hex. It is
> sometimes easiest to use a calculator and change the base units until you
> have a good feel for the base you are working in. Just my $0.02 worth.
>
> MH
>
>
Original Message
> From: <carl@g...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, March 27, 2001 5:36 AM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> > >OHHH, Ok, now i see. so A4F=2639.
> > >thank you
> > >
> >
> > No one ementioned how cleanly hex is represented in binary and
> > vice versa.
> >
> > A4F = 1010 0100 1111 (without the spaces)
> >
> > Carl
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
and negative numbers, signed and unsigned. A signed number gets 0xffff
represented as -1, an unsigned one as 65535.
On Mon, 26 Mar 2001, Don Russell wrote:
> ah... because they don't interpret the high order bit as a sign.... (I
> shouldn't have brought it up) :-)
>
> So, yes the 2 byte field can hold a decimal value from 0 to 65535.
>
> The range is actually the same, a two byte field may have 65536 different
> values.... x0001 x0002 ... xffff
>
> HOW those values are interpretted is a matter of convention and context.
> Think of the ol' numberline from high school math.... put a mark at any
> point, and another mark on any other point exactly 65535 units "away"....
> now think of that area between the marks as a "slide" on the number
> scale.... you can represent the decimal numbers 0-65535, or -1 to 65534,
> or -2 to 65533 etc.... but usually when a number is "signed" the range of
> +/- number is pretty much equal.
>
> I haven't done enough with the BS chips to know if they do signed arithmetic
> or not....
>
> Consider a 1 byte value.... x'30'
>
> What is x'30'.... answer: It depends (context ALWAYS matters)
> it's decimal 48 (3 * 16)
> it's a character zero if it's being displayed on an ascii device
> ---
> Don Russell
> ---
>
Original Message
> From: <aconti@n...>
> To: <basicstamps@yahoogroups.com>
> Sent: Monday, March 26, 2001 7:56 PM
> Subject: [noparse][[/noparse]basicstamps] Re: HEX help
>
>
> > then why dose the BS programming manual (V2.0c) have FFFF=65535 as a
> > max val?
> > that is way bigger than 32767, and it is not a neg. number.
> >
> > tony
> >
> >
> > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > yup yup yup... you got it...
> > >
> > > and just for the sake of completeness... when the leftmost hex
> > digit has the
> > > highorder bit on (8 or higher) I usually put a 0 infront of it all
> > to
> > > emphasize the number is positive.
> > >
> > > So in your example of A4F hex... that may be a negative number
> > depending on
> > > context... 0A4F is never negative....
> > >
> > > That's because the first bit of a hex number is often used as a sign
> > > value.... this is why a two byte signed field can't have a value
> > exceeding
> > > 32767 decimal, because as soon as you go past that you get into the
> > negative
> > > number range. 32768 = 8000x
> > > ---
> > > Don Russell
> > > ---
> > >
Original Message
> > > From: <aconti@n...>
> > > To: <basicstamps@y...>
> > > Sent: Monday, March 26, 2001 7:35 PM
> > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > >
> > >
> > > > OHHH, Ok, now i see. so A4F=2639.
> > > > thank you
> > > >
> > > >
> > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > OK, 1F hex....
> > > > >
> > > > > going back to the basic of the ones column and the 16's
> > column....
> > > > >
> > > > > there is 1 in the 16's column: 1* 16 = 16
> > > > > there is 15 in the 1's column: 15* 1 = 15
> > > > >
> > > > > Add up the two ... 16 + 15 = 31
> > > > >
> > > > > x1F = 31 decimal
> > > > >
> > > > > ---
> > > > > Don Russell
> > > > > ---
> > > > >
Original Message
> > > > > From: <aconti@n...>
> > > > > To: <basicstamps@y...>
> > > > > Sent: Monday, March 26, 2001 7:26 PM
> > > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > > >
> > > > >
> > > > > > don, how about 1F.
> > > > > >
> > > > > > tony
> > > > > >
> > > > > >
> > > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...> wrote:
> > > > > > > *our* numbers? ;-) But these ARE our numbers... I use hex
> > > > > > everyday.... to
> > > > > > > the point of balancingmy checkbook when I wrote a check for
> > $38,
> > > > > > deducting
> > > > > > > it from my current of 190. and got...
> > > > > > > 190
> > > > > > > - 38
> > > > > > >
> > > > > > > 158
> > > > > > >
> > > > > > > oops, you KNOW you're working too many hours when that
> > happens.
> > > > > > lol ;-)
> > > > > > >
> > > > > > > Seriously though, give me an example of exactly what you
> > want to
> > > > > > do... I
> > > > > > > thought my description (below) did show how to convert hex
> > to
> > > > > > decimal....
> > > > > > >
> > > > > > >
> > > > > > > ---
> > > > > > > Don Russell
> > > > > > > ---
> > > > > > >
Original Message
> > > > > > > From: <aconti@n...>
> > > > > > > To: <basicstamps@y...>
> > > > > > > Sent: Monday, March 26, 2001 6:38 PM
> > > > > > > Subject: [noparse][[/noparse]basicstamps] Re: HEX help
> > > > > > >
> > > > > > >
> > > > > > > > ok, i under stand how to get to hex, but how do i get to
> > our
> > > > > > numbers?
> > > > > > > >
> > > > > > > >
> > > > > > > > --- In basicstamps@y..., "Don Russell" <drussel2@s...>
> > wrote:
> > > > > > > > > Hexadecimal uses a base 16 numbering system instead of
> > the
> > > > more
> > > > > > > > familiar
> > > > > > > > > base 10 ...
> > > > > > > > >
> > > > > > > > > Each hex digit has a value of 0-9 or a-f.
> > > > > > > > > 0-9 hex have the same value as decimal 0-9. (a-f) have a
> > > > decimal
> > > > > > > > equivaluent
> > > > > > > > > value of 10-15.
> > > > > > > > > Thus, one hex digit has a decimal value of 0-15
> > > > > > > > >
> > > > > > > > > To convert a hex number to decimal "by hand", remember
> > that
> > > > > > > > each "column" is
> > > > > > > > > 16 times the value of the column to it's immeditate
> > right.
> > > > > > > > >
> > > > > > > > > In decimal terms, remeber the one's tens' hundreds'
> > column?
> > > > Hex
> > > > > > has
> > > > > > > > the same
> > > > > > > > > idea, but it's all based on base 16...
> > > > > > > > >
> > > > > > > > > So, we have the "one's" column then the 16's column then
> > > > the 256
> > > > > > > > column....
> > > > > > > > >
> > > > > > > > > So, lets convert a hex number like '0ABC'...
> > > > > > > > >
> > > > > > > > > A=10 ---> * 256 = 2560
> > > > > > > > > B=11 ---> * 16 = 176
> > > > > > > > > C=12 ----> *1 =12
> > > > > > > > >
> > > > > > > > > Now add it all up, 2560 + 176 + 12 = 2748
> > > > > > > > >
> > > > > > > > > So hex ABC = 2748 decimal.
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > >
> > > > > > > > > Further examination of numbering systems show that
> > > > Christmas and
> > > > > > > > Hallowe'en
> > > > > > > > > actually occur on the same day!!! Considering the Octal
> > > > (bas 8)
> > > > > > > > number
> > > > > > > > > system we see that OCT 31 = DEC 25 !! :-)
> > > > > > > > >
> > > > > > > > > QED. :-)
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > > Don Russell
> > > > > > > > > ---
> > > > > > > > >
Original Message
> > > > > > > > > From: <aconti@n...>
> > > > > > > > > To: <basicstamps@y...>
> > > > > > > > > Sent: Monday, March 26, 2001 6:15 PM
> > > > > > > > > Subject: [noparse][[/noparse]basicstamps] HEX help
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > This might sound like a stupid question, but.
> > > > > > > > > >
> > > > > > > > > > What is the hexadecimal number system?
> > > > > > > > > >
> > > > > > > > > > how dose it work?
> > > > > > > > > >
> > > > > > > > > > and how do i turn it to our number system?
> > > > > > > > > >
> > > > > > > > > > thank you
> > > > > > > > > > tony
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > > > http://docs.yahoo.com/info/terms/
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Your use of Yahoo! Groups is subject to
> > > > > > http://docs.yahoo.com/info/terms/
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson