1 var countBytes = new byte[] { 66, 12, 25, 217 }; 2 var countHexStr = ToHexStrFromByte(countBytes.ToArray()); 3 uint num = uint.Parse(countHexStr, System.Globalization.NumberStyles.AllowHexSpecifier); 4 byte[] floatVals = BitConverter.GetBytes(num); 5 float floatResult = BitConverter.ToSingle(floatVals, 0); 6 result = floatResult.ToString();
标签:十六进制,floatVals,c#,浮点数,num,countBytes,floatResult From: https://www.cnblogs.com/nayilvyangguang/p/17465793.html