基于C++ Builder 6.0的IEEE 754中单精度浮点数转换实现  被引量:1

Convert of floating-point data in IEEE 754 based on C++ Builder 6.0

在线阅读下载全文

作  者:翟振辉[1] 欧世峰[1] 刘继长 钟全雄[2] 高颖[1] 

机构地区:[1]烟台大学光电信息学院,山东烟台264005 [2]烟台大学工程实训中心,山东烟台264005

出  处:《现代电子技术》2014年第20期27-30,共4页Modern Electronics Technique

基  金:国家自然科学基金(61201457)

摘  要:IEEE 754标准规定了可以精确表示某一浮点型数据的单精度(常用)和双精度表示方法,这在许多对数据精度要求较高的场合得到广泛应用,而在数据通信过程中所有数据都是以十六进制打包和解析、二进制形式传输的,所以研究如何根据该标准把所要传输的浮点型数据编程转换成8位十六进制数据具有重要的实用意义。这里在分析和研究IEEE 754标准中浮点型数据单精度表示方式的基础上,结合Borland C++Builder 6.0可视化编程工具,阐述了如何把单精度浮点型数据转换成所需要的8位十六进制数,以及如何把8位十六进制数转换成单精度浮点类型数据,并实现显示。The single precision and double precision expressive methods which can accurately express a float-point data are stipulated in IEEE754 standard. They are widely in the field,in which the accuracy requirement is high. On the base of studying and analyzing the expression of the 32 bits floating-point,how to translate the floating-point data to the needed hexadecimal da-ta,and how to translate the hexadecimal data to the floating-point data are elaborated in combination with the visual program-ming tools Borland C++ Builder 6.0,and the expression of the 32 bits floating-point data in the IEEE 754 standard. The data display was realized.

关 键 词:IEEE 754标准 十六进制数 单精度浮点数 可视化编程工具 

分 类 号:TN911-34[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象