ved*_*eda 31 c# floating-point bytearray
我有一个大小为4的字节数组
byte[] source = new byte[4];
Run Code Online (Sandbox Code Playgroud)
现在我想将此源转换为4字节的浮点值...
谁能告诉我怎么做...
Joe*_*oel 57
尝试
float myFloat = System.BitConverter.ToSingle(mybyteArray, startIndex);
| 归档时间: |
|
| 查看次数: |
58242 次 |
| 最近记录: |