Interpreting Pascal REAL variables
Interpreting Pascal REAL variables
(OP)
I have the challenge of loading data out of a file that was created by a Borland Pascal (v7) program. The file was a typed file, and had Records written to it, some of the fields of which are of type "real".
I stumbled on Thread935-574230 through Google, and thought someone here might be able to help.
Basically, I need to interpret the binary Real value and recalculate it into a number I can use.
So far I've determined a Real is 6 bytes long (48bits). I found this page:
http://docs.sun.com/db/doc/801-5055/6hvhckkeh?a=view
Which helps a little, but only addresses 32bit and 64bit reals... (plus, I have to admit, I haven't yet determined exactly what to do with the mantissa, exponent and remainder...)
I stumbled on Thread935-574230 through Google, and thought someone here might be able to help.
Basically, I need to interpret the binary Real value and recalculate it into a number I can use.
So far I've determined a Real is 6 bytes long (48bits). I found this page:
http://docs.sun.com/db/doc/801-5055/6hvhckkeh?a=view
Which helps a little, but only addresses 32bit and 64bit reals... (plus, I have to admit, I haven't yet determined exactly what to do with the mantissa, exponent and remainder...)
RE: Interpreting Pascal REAL variables
Could you elaborate on what you *actually* have regarding the value of the real?
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
RE: Interpreting Pascal REAL variables
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.
RE: Interpreting Pascal REAL variables
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
RE: Interpreting Pascal REAL variables
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.
RE: Interpreting Pascal REAL variables