Tor Henrik Hovi
Member
Hi all.
Im comunicating with an USB device and are getting values as bytearrays through it.
So I recive a 8 byte long array wich is supposed to be a double variable. How do I convert/typecast those eight bytes into a Double value?
I have found some hints on the net about using a fromstream function. But I cant find out how to do it.
It is probably the same as reading a double value from a file?
If so there should be an easy way of doing this, but I cant find it.
Banging my head against the wall on this one, so any input would be appriciated......
Im comunicating with an USB device and are getting values as bytearrays through it.
So I recive a 8 byte long array wich is supposed to be a double variable. How do I convert/typecast those eight bytes into a Double value?
I have found some hints on the net about using a fromstream function. But I cant find out how to do it.
It is probably the same as reading a double value from a file?
If so there should be an easy way of doing this, but I cant find it.
Banging my head against the wall on this one, so any input would be appriciated......