×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Interpreting Pascal REAL variables

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...)

RE: Interpreting Pascal REAL variables

I know this isn't what you're after, but you could try object oriented (my knowledge of this is very limited). I think you can use variables used by other people, without knowing the source, in a program or extension you have written. But then again, I guess the origonal needs to be OOP aswell.

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

You know everything! *in awe*

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."

RE: Interpreting Pascal REAL variables

(OP)
Thanks for finding the info... I've successfully accomplished the binary conversion: Thread184-622842

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close