问题
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...
回答1:
Try
float myFloat = System.BitConverter.ToSingle(mybyteArray, startIndex);
来源:https://stackoverflow.com/questions/2619664/c-convert-byte-array-into-a-float