views:

367

answers:

1

I have a 4 byte array

byte[] source = new byte[4];

Now I wanted to convert this source into a 4-byte float value...

Can anyone tell me how to do this...

+2  A: 

Try

float myFloat = System.BitConverter.ToSingle(mybyteArray, startIndex);

Joel