www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/14/12:48:12

From: bray AT biomed DOT med DOT yale DOT edu (Nick Bray)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: List of Hexadecimal value
Date: 14 Oct 1996 15:33:33 GMT
Organization: Yale University
Lines: 26
Message-ID: <53tmgd$9kq@news.ycc.yale.edu>
References: <19961012 DOT 134017 DOT 3918 DOT 1 DOT waldo666 AT juno DOT com>
NNTP-Posting-Host: 130.132.93.62
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019