Float-Process

所属分类:串口编程
开发工具:Visual Basic
文件大小:13KB
下载次数:26
上传日期:2013-06-20 15:05:47
上 传 者一如冀往
说明:  VB串口通信中经常会遇到10进制浮点数转为多字节Byte数据类型的情况,以及在接收后需转为10进制浮点数需求。 VB有专门的API函数CopyMemory能处理2-10进制浮点数转换和10-2进制浮点数转换。 下列代码演示了10进制Single(单精度浮点型转为16进制字符显示的浮点数和其相反运算:
(VB serial communication often encounter decimal floating-point to multi-byte Byte data type, as well as after reception needs to be converted to decimal floating-point number. VB has a special API function CopyMemory can handle binary floating-point conversion and 10-2 2-10 hex floating-point conversion. The following code demonstrates decimal Single (single-precision floating-point into a hexadecimal character display of floating point operations and its opposite:)

文件列表:
Float Process.doc (71168, 2013-04-26)

近期下载者

相关文件


收藏者