search for: fvariabl

Displaying 1 result from an estimated 1 matches for "fvariabl".

Did you mean: variabl
2006 Sep 27
2
Single Precision (4 byte) floats with readBin
I would like to use readBin to read a binary data file. Most of the data is 4-byte floating point but, for some reason, only double precision appears to be offered. I tried fVariable=readBin(iFile,what=single()); and got 35.87879 which looks believable except that the correct value is 3.030303. I then tried fVariable=readBin(iFile,what=single(),4); and got [1] 3.831111e+10 6.657199e+10 -5.592394e+29 -5.592397e+29 For the second call, there were two more single precision f...