Q:

C#: Convert Byte array into a float

I have a byte array of size 4
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...

A:

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

