Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: read + unpack

by citromatik (Curate)
on May 06, 2009 at 07:14 UTC ( #762181=note: print w/ replies, xml ) Need Help??


in reply to read + unpack

read the following 6 values which are 3 doubles (8bytes), 2 long integer (4bytes) and another double (8bytes again)

For double precision floats use the d template in unpack, you are using f which is for single precision floats. See pack for details

citromatik


Comment on Re: read + unpack
Select or Download Code
Replies are listed 'Best First'.
Re^2: read + unpack
by andri85 (Novice) on May 06, 2009 at 22:51 UTC
    I did: in fact, I tried to "guess" the right combination of data files with many attempts but I never got a good result. I was also wondering how little-endian or big-endian system can change the way I have to read the file and how I can understand whether my system is littleendian or bigendian
    Thanks for the suggestions.
    Andri

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://762181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2015-07-30 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls