How to Convert bytes[] to double?

  • Thread starter Thread starter =?big5?B?qM6nuw==?=
  • Start date Start date
?

=?big5?B?qM6nuw==?=

I can't convert it correctly by Convert class.

for example:

I got a bufferStream, and

byte[] a = {0,0,0,0,0,10,1,23}

I want to convert a to double b. How should I do?
 
ä½³å® said:
I can't convert it correctly by Convert class.

for example:

I got a bufferStream, and

byte[] a = {0,0,0,0,0,10,1,23}

I want to convert a to double b. How should I do?

BitConverter.ToDouble maybe.

Arne
 
=?big5?B?qM6nuw==?= said:
I can't convert it correctly by Convert class.

for example:

I got a bufferStream, and

byte[] a = {0,0,0,0,0,10,1,23}

I want to convert a to double b. How should I do?

Well, how was it encoded in the first place? We can't possibly answer
without knowing what the format is meant to be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top