十六进制转浮点数

[复制链接]
查看11 | 回复1 | 2016-3-8 07:09:41 | 显示全部楼层 |阅读模式
VB有专门的API函数CopyMemory能处理2-10进制浮点数转换和10-2进制浮点数转换。下列代码演示了10进制Single(单精度浮点型转为16进制字符显示的浮点数和其相反运算:Option ExplicitPrivate Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)Private Sub BinToSin_Click()
Dim sinStr As String
Dim sinSj As Single
Dim Buffer(...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行