Re: [R] Single Precision (4 byte) floats with readBin

2006-09-27 Thread Peter Lauren
--- Sundar Dorai-Raj <[EMAIL PROTECTED]> wrote: > > > Peter Lauren said the following on 9/27/2006 3:11 > PM: > > 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.

Re: [R] Single Precision (4 byte) floats with readBin

2006-09-27 Thread Sundar Dorai-Raj
Peter Lauren said the following on 9/27/2006 3:11 PM: > 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.8787

[R] Single Precision (4 byte) floats with readBin

2006-09-27 Thread Peter Lauren
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.