开发者

How to separate four bytes of floats?

开发者 https://www.devze.com 2023-01-10 02:02 出处:网络
Could anyone, please guide me as how to separate 4 bytes of float开发者_如何学Go in Visual Studio C#, and retrieve each byte as a character? As I need to save each byte of float as hex value in a text

Could anyone, please guide me as how to separate 4 bytes of float开发者_如何学Go in Visual Studio C#, and retrieve each byte as a character? As I need to save each byte of float as hex value in a text (.hex) file.

Regards Asad


Use the BitConverter class to convert from float to a byte array.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号