I have not tried his code, but you should get a better idea looking at it
like this...

byte arr[8];
long bits=0;
double db;

for(i=0;i<8;i++)
    arr[i] = getbyte();

for(i=0;i<8;i++)
    bits = (bits << 8) | arr[i];

db = Double.longBitsToDouble(bits);

basicly convert the array of bytes to a single long and then convert the long
bits to a double. This is very cool to me, I had no idea about this, and I
really needed it a couple of days ago but thought my only choice was
DataOutStream and DataInputStream. (Thank you Martin)

Leyland Needham

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to