检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:肖红德 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[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.33