Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie.macc.wisc.edu!indri!lll-winken!uunet!mcvax!kth!draken!tut!santra!chyde!ts From: ts@chyde.uwasa.fi (Timo Salmi LASK) Newsgroups: comp.lang.pascal Subject: Re: Wanted : Routine to convert ASCII hex numbers into decimal value Message-ID: <467@chyde.uwasa.fi> Date: 26 Apr 89 08:22:51 GMT References: <1290@ncr-sd.SanDiego.NCR.COM> Reply-To: ts@chyde.uwasa.fi (Timo Salmi LASK) Organization: University of Vaasa, Finland Lines: 35 In article <1290@ncr-sd.SanDiego.NCR.COM> shehzad@babel.SanDiego.NCR.COM (Mevawalla Shehzad) writes: >I need a Turbo Pascal routine which will take as it's input a string of HEX >numbers in ASCII format (eg 0AB = 30 41 42 H) and convert it into a value of >type real. If anybody has written such a routine I would greatly appreciate >it if you would mail it to me. This is not quite what you are looking for but the list appended at the end of this posting might be of interest to you. You can anonymous ftp tsbits16.arc from 128.214.12.3. To anticipate a question, the sources are not available. ------------------------------------------------------------------- Prof. Timo Salmi School of Business Studies, University of Vaasa, P.O.Box 297, SF-65101 Vaasa, Finland Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun ------------------------------------------------------------------- Searching Archive: B:TSBITS16.ARC - Bits and conversions by T.Salmi Filename Comment Date Time CRC -------- -------------------------------- ---- ---- --- BINTODEC.EXE Binary to decimal 08-08-88 00:03:30 E3B9 BITWISE.EXE Binary operations with 10-base 01-30-88 13:20:52 B776 COMDIV.EXE Largest common divisor 12-31-88 19:46:36 A2D6 CONVBASE.EXE Conversion between number bases 03-05-88 22:29:36 4169 DECTOBIN.EXE Decimal to binary 08-08-88 00:03:48 AFC2 DECTOHEX.EXE Decimal to hexadecimal 08-08-88 00:04:04 384E FACTORS.EXE Factors etc. of integers 01-30-88 13:22:04 7F0A HEXTODEC.EXE Hexadecimal to decimal 08-08-88 00:04:38 A03A TSBITS.INF Document 12-30-88 14:51:58 071F TSPROG.INF List of PD programs from T.Salmi 03-24-89 12:07:44 EC87 ---- ------ ------ ----- 0010 109557 89180 19%