Hi Ishwari
 
You may try that:
 
long bits=0;
for (int i=0; i<8; i++)
{
    bits = (bits << 8) | getByte();
}
double value = Double.longBitsToDouble(bits);
 
 
    Martin.
 
 
 
----- Message d'origine -----
De : ishwari
Envoyé : lundi 9 juillet 2001 04:23
Objet : Need of Equivalent code in Java

Hi,
 
I have the follg code in c++. I wish to have the equivalent code in Java.. Can anyone help me in getting it??
 
 
c++ code:
 
BYTE arr[8];
double *dbptr;
 
for(i=0;i<8;i++)
    arr[i] = getbyte();
 
dbptr = (double *)arr;
 
 
Thanks in advance,
 
Regards,
ishwari
 

Reply via email to