**Mail Archives: djgpp/1996/10/14/12:48:12**
Will C Stockwell says...
>
>Can someone post a list of hexadecimal values between 1 and 100 or
>something to that effect? Thanks.
>
>Will Stockwell
>mailto:waldo666 AT juno DOT com
>http://www.geocities.com/SiliconValley/Park/5981/
Well the best thing to do would to learn the concept of hexadecimal. Normally,
we work in base ten math, meaning that our number system has ten symbols(0-9).
But hexadecimal is base sixteen, so it has sixteen symbols(0-9 and A-F). The
base ten value of a number in a different base, lets call it b, can be found
as follows:
take the base ten value(like 9=9, A=10, B=11, ...) of the digit in place
n(starting out at zero) and multiply it by b^n and add that to your total. A
simple example is in base ten: obviously 93 is equal to 3*10^0 + 9*10^1. So
just use this method on a hex number like A9 and you get 9*16^0 + 10*16^1 =
169. Now finding hex values is left as an excercise to the reader.
(I hope that explanation is clear enough, I'm not very good at explaining
things.)
Nick Bray

*- Raw text -*