Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!fluke!ssc-vax!simnet From: simnet@ssc-vax.UUCP (Mark R Poulson) Newsgroups: comp.sources.wanted,comp.misc Subject: Radix Conversion Algorithm Message-ID: <836@ssc-bee.ssc-vax.UUCP> Date: Mon, 8-Jun-87 18:30:39 EDT Article-I.D.: ssc-bee.836 Posted: Mon Jun 8 18:30:39 1987 Date-Received: Fri, 12-Jun-87 02:41:19 EDT Organization: Boeing Aerospace Corp., Seattle WA Lines: 30 Xref: mnetor comp.sources.wanted:1338 comp.misc:668 An Algorithm is needed that converts the ASCII string representation of a decimal floating point number to binary floating point representation. The conversion must be done with integer calculations only. There is no floating point processor available. EXAMPLE: Given the ascii representation of a decimal floating point number. 2.57e6 This can be converted to decimal integer variables. whole 2 fraction - numerator 57 denominator 100 exponent 6 An algorithm is needed to convert these variables to the binary form. fraction exponent The results are placed in IEEE double precision floating point format. This will be written in C, on the Intel 80286. The opposite conversion is also needed. The IEEE double precision floating point format is converted to ASCII string representation of a decimal floating point number. Public domain listing for sscanf in C, could have the solution. If available, please send. Send responses to ...!uw-beaver!ssc-vax!ssc-bee!simnet