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