I just got confused about how to convert an array of 4 signed bytes to a float number.
I just know for an array of unsigned bytes bts, probably I can use this function
BitConverter.ToSingle(bts, 0);
However, it looks like BitConverter.ToSingle only accepts byte array instead of sbyte array.
Could somebody give me some ideas please?
Thanks!
BitConverter.ToSingle(bts.Select(b=>(byte)(b+128)).ToArray())sbytein the first place. Check your dataflow for the problem upstream.