- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My input files consist of older (Turbo?)-Pascal binary Real*6 variables, originating from PC-applications, starting with a sign-bit (0=pos,1=neg), 39 bits fraction and 8 bits exponent, not sure whether little or big Endian. Thus some sort of extended Fortran Real*4.
I do know what the fields must contain, therefore I might read the data into unformatted byte-strings and play with various bit-conversions until I see the proper result.
Or does CVF Fortran solve this bit-wise conversion more elegantly ?
DaVinci
I do know what the fields must contain, therefore I might read the data into unformatted byte-strings and play with various bit-conversions until I see the proper result.
Or does CVF Fortran solve this bit-wise conversion more elegantly ?
DaVinci
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you mean does it have a means to automatically convert, I don't think so. This shouldn't be hard though to read in as you say, you can setup a character*6 to accept the data and equivalence that to an integer*8 variable, then work with that for your bitwise operations.
James
James

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page