积极答复者
IEEC 十六进制32位浮点数与小数的相互转换

问题
答案
-
你好,
似乎你发不一个同样的问题,这个下面这个链接,我已经提供相关代码,你可以参考一下。
https://social.microsoft.com/Forums/zh-CN/871d4702-e868-4251-a593-73a5f68096af/vbnet32?forum=2212
Best regards,
Cole Wu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 月满西楼 2016年8月30日 3:44
全部回复
-
//C#
int num = 0x41c8cccd;
float num2 = *((float*) &num);
int num3 = *((int*) &num2);
Debug.WriteLine(num2.ToString());
Debug.WriteLine(num3.ToString("X"));//VB.NET
Dim num As Integer = &H41C8CCCD
Dim num2 As Single = DirectCast(AddressOf num, Single*)
Dim num3 As Integer = DirectCast(AddressOf num2, Integer*)
Debug.WriteLine(num2.ToString)
Debug.WriteLine(num3.ToString("X"))专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
-
你好,
似乎你发不一个同样的问题,这个下面这个链接,我已经提供相关代码,你可以参考一下。
https://social.microsoft.com/Forums/zh-CN/871d4702-e868-4251-a593-73a5f68096af/vbnet32?forum=2212
Best regards,
Cole Wu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 月满西楼 2016年8月30日 3:44