Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro » String to float conversion needed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
String to float conversion needed [message #82909] Mon, 10 June 2013 21:13
jss is currently offline  jss
Messages: 71
Registered: May 2013
Karma: 0
Member
Message-ID: <661@sjuvax.UUCP>
Date: Fri, 16-Nov-84 15:45:36 EST
Article-I.D.: sjuvax.661
Posted: Fri Nov 16 15:45:36 1984
Date-Received: Sun, 18-Nov-84 03:53:21 EST
Distribution: net
Organization: Saint Josephs Univ. Phila., Pa.
Lines: 28

[Aren't you hungry...?]

	This request should be easy.  None of the sites I have access to have
the IEEE floating point stuff. I am in need of a function/procedure, in C,
to convert a real number string to a real number.  The catch is, this is
not for the VAX, so scanf won't work.  The target formats I am looking for
are:

Single Precision:

       Sign bit (1)|Biased Exponent(8)|Mantissa Magnitude(23)

       Biased exponent = true exponent + 127

Double Precision:

       Sign bit (1)|Biased Exponent(11)|Mantissa Magnitude(52)

       Biased exponent = true exponent + 1023

	Ideally, these routines should not be dependent on any uniquely VAXish
tricks, though beggars can't be choosers.

Any help that you might provide would be greatly appreciated.

Thank you.

Jon Shapiro
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Versabus/Exorciser components
Next Topic: Pournelle is Right
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Jul 03 02:34:38 EDT 2025

Total time taken to generate the page: 0.01336 seconds