浮点类型有效位数计算与应用分析  被引量:4

The Calculation About Number of Significant Digit and Application Analysis of Floating-point Type

在线阅读下载全文

作  者:肖红德 XIAO Hong-de(School of Minsheng,Henan University;School of Mathematics and Statistics,Henan University,Kaifeng 475004,China)

机构地区:[1]河南大学民生学院 [2]河南大学数学与统计学院,河南开封475004

出  处:《软件导刊》2019年第4期50-56,共7页Software Guide

基  金:河南省高等学校重点科研项目(16A110010);河南大学民生学院教学改革研究项目(MSJG2016042)

摘  要:为弄清浮点类型数据在应用中存在"异常"现象的原因,研究了浮点类型数据在内存中的存储形式,得到与其在内存中存储规范一致的结果。分析浮点类型数据在内存中存储形式对应的理论区间并进行实验验证,得出浮点类型数据的精度(对于规范化浮点类型数据,float15~17位),进而对浮点类型数据在应用中的一些异常现象进行合理解释,比如"大数吃小数"、输出格式控制以及输出结果与预期不一致等。通过对浮点类型数据在计算机内存中表达形式的理论分析和实验验证,实现对实际数据进行离散化处理,为计算机内存中的表示和相关计算带来帮助。This paper studies the storage form of floating-point type data in memory and explains why there is an "abnormal" phenome. non in the application. The result verified through experiments is consistent with the storage specification of floating-point type data in memory. Through the analysis,the theoretical interval corresponding to the storage form in the floating-point type data memory is ob. tained and experimentally verified,and then the accuracy of the floating-point type data is analyzed(For normalized floating-point type data,the effective number of float type is 6~8 and double type is 15~17). Furthermore,some explanations on the application of floating-point type data are reasonably explained,such as "large numbers eat decimals",output format control,and output results are inconsistent with expectations.

关 键 词:浮点类型 有效位数 存储单元 数制转换 不精确表示 

分 类 号:TP301[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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