CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - vb Function
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - vb Function - List
[
MPI
]
Float-Process
DL : 0
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:
Date
: 2025-12-22
Size
: 13kb
User
:
冀鹏超
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.